Skip to content
TILens What matters today in tech v0.4.0
Theme
Topics - Rust
Calendar · NOV 2026
‹ Nov 2026 ›
  1. JAN
  2. FEB
  3. MAR
  1. APR
  2. MAY
  3. JUN
  1. JUL
  2. AUG
  3. SEP
  1. OCT
  2. NOV
  3. DEC
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
Favorites (0)

Community stream

Community

Higher-rank trait bounds and `impl<T> Default for Box<dyn Trait<T>>`?

I have a generic trait with a "default" implementation that I would like to use with Default::default (playground MWE): trait Trait<T> {} struct DefaultImpl; impl<T> Trait<T> for DefaultImpl {} I would like to use Box::new(DefaultImpl) as the…

rust-users-forum

Why are IterMut iterator loops allowed to use aliasing &mut references?

Consider the following rust code: fn main() { let mut v = vec![1,2,3,4,5,6,7,8]; for elem in v.iter_mut() { *elem += 10; } println!("{:?}", v); } This code compiles and runs just as expected, adding 10 to each element of v. However according to my…

rust-users-forum

Three channel types from tokio or separate crates

I have a crate that optionally supports tokio (the crate can spawn a runtime, and the application likely uses networking along with it). This crate, regardless of whether tokio support is enabled or not, needs to perform some communication between…

rust-users-forum

Println! Macro VS print

I am going through the rust book and I am on chapter 3. I am bit confused what is the difference between the println and the normal print? 9 posts - 5 participants Read full topic

rust-users-forum

How to get better at rust

Hi all, i recently completed the rust programming language book and am also currently working on an embedded rust project, however i still fell like a newb, I really want to get into native applications and in general production grade programming in…

rust-users-forum

Non-`must_use` closure (`FnOnce` or `FnMut` or `Fn`)?

I'm writing a library that has a function like this: /// The returned closure does not need to be called, but doing so /// amuses the computer gremlins. pub fn foo() -> Result<impl FnOnce(), Box<dyn Error>> { // ... } It is perfectly valid to ignore…

rust-users-forum

Messaging server for a student management software

Hi everyone, I'm working on a student management platform and looking to add an in-app messaging feature so students and teachers can chat, create group conversations and stay connected without having to switch between different apps. I've been…

rust-users-forum

Custom DST - least un-sane approach?

The next step I'm about to take in polishing redbook is to find a better way to handle one of the ffi calls which returns a DST[1]. The "correct" definition of the struct would be: pub(crate) struct DeviceDetails { cbSize: u32, DevicePath: [u16], }…

rust-users-forum

Procedural Macro to create SoA version of a struct

Hello, I want to make a derive macro that creates an struct of array version of a struct. I'm just having trouble figuring out how to make it nicely work especially with the methods. For instance a get(idx: usize) method would return an instance of…

rust-users-forum

Diference between Refcell<T> and onceCell<T>

Hi everyone I was reading about ownership, but as I carried on reading and began to understand the issue much better, I came across the topic of Refcell and OnceCell. I tried to read a bit about them, but I still can’t quite grasp the difference…

rust-users-forum

Share build cache with sccache across git worktrees

situation I use git worktrees (admittedly a bit more than necessary). My main project is a cargo workspace. In Cargo.lock, I see around 550 (direct and indirect) crate dependencies. Looking at the target/debug/build directory, that results in 400…

rust-users-forum

444 items available