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

Does the new `impl const Trait` works?

I ran cargo run command and got: error: expected a trait, found type --> src/main.rs:10:6 | 10 | impl const Multiplier for Math { | ^^^^^^^^^^^^^^^^ error: could not compile rusty (bin "rusty") due to 1 previous error 2 posts - 2 participants Read…

rust-users-forum

Clarification regarding idiomatic input

Hello everyone! Is more idiomatically to use io::stdin().read_line(&mut s).unwrap_or_else(|err| { eprintln!("Critical error: failed to read from stdin. Reason: {err}"); process::exit(1); }); than io::stdin().read_line(&mut s).expect("Critical error:…

rust-users-forum

Tracing - looking for subscriber with parent span info

I'm currently using tracing-subscriber to format output for a CLI app (stdout, stderr & optional log). I'm missing the ability to include parent span fields in the output as well as some nice-to-have customisations for the console output formatting.…

rust-users-forum

How implement an iterator over a growing collection?

AI gives me an example, but unfortunately a collection growing should happen inside the iterator next(). struct GrowingIter { data: Vec<String>, index: usize, } impl Iterator for GrowingIter { type Item = String; fn next(&mut self) ->…

rust-users-forum

Implementing trait with static lifetime bound

G'day folks, Today I'm working on a dictionary stemmer. The data required for this is several megabytes, so I want to keep as few copies around as possible. There are three traits involved here: docs.rs TokenFilter in tantivy_tokenizer_api - Rust…

rust-users-forum

Make an iterator-like pattern with overrides or reusing

I am trying to make a iterator like pattern (or builder pattern might be more accurate). Where I want to have a core function which will pass in bytes through the rest of the chain, and each part of the chain would decode it into a specific struct,…

rust-users-forum

Does rust abstract file operations incorrectly?

Introduction I recently got into building a wayland client in rust on linux to get a feel for both linux windowing and rust IPC. I ended up getting stuck on step #1 which was to open a unix socket to a wayland compositor process because part of the…

rust-internals

Request for feedback: how to clean up actors

I'm building an actor library and have ran into a sticking point. For context, the library is powered by macros, so I have a lot of leeway in terms of generating or modifying the implementation for a given actor on top of the code provided by the…

rust-users-forum

Debugging callback structs

I'm trying to test a struct that calls back to a listener whenever its internal state changes using an interface like this: pub struct StateDetails { id: String, name: String, info: Vec<u16>, // ... } #[cfg_attr(test, mockall::automock)] pub trait…

rust-users-forum

Cargo doc - dev & build dependencies

Is it possible to get cargo doc to also create the documentation for build & dev dependencies? This would be really useful to have locally. I couldn't find anything in --help, the cargo book or github issues related to this. Can I really be the…

rust-users-forum

Send this stuff over threads

I have been lost for song long... I want to send this struct over the threads but the classic "some member that is under this struct doesnot implement the SEND trait" comes up. i did avoid this earlier by creating the struct inside the new thread…

rust-users-forum

444 items available