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

Less restrictive mutability rules, again

I'm seeing postings on other forums about new languages whose main feature seems to be a more relaxed borrow checker than Rust. This has come up many times before. I had a go at this back in 2024. The consensus seemed to be that it wasn't enough of…

rust-internals

Implementation of lossy conversion of database models

I am preparing a database migration crate. Its purpose will be to migrate a legacy database structure to a next-gen database structure, which represents (changed) domain models for a smart home network controller. This conversion will be lossy at…

rust-users-forum

Is it a bug of rust-analyzer?

Type of a should be &mut [u8] instead of &mut &mut [u8], right? Let me give more context: vault_info.data is : solana_account_info::AccountInfo pub data: Rc<RefCell<&'a mut [u8]>, Global> 10 posts - 4 participants Read full topic

rust-users-forum

How to harden Rust servers?

Your daily reminder that, while Rust's safe APIs are memory-safe, that doesn't extend to /proc/self/mem and so, if there is a path traversal to that, secrets could still leak. So, what hardening approaches are there for Rust? I typically use axum,…

rust-users-forum

Mutation, soundness, safety in FFI code

Hi there, I've been using sdl3-sys and writing some simple SDL3 wrappers. My current (WIP) code looks like this: let sdl_system = SDLSystem::new(&sdl_metadata) .map_err(|err| format!("Failed to create SDL system: {}", err))?; let sdl_window =…

rust-users-forum

Named Arguments are Just Structs: Anonymous Struct Parameters

There's been a recent round of posts on named arguments in Rust: Botahamec's Named and Optional Arguments are Awesome, Steve Klabnik's Arguing about arguments, and Matthias Endler's We Have Named Arguments at Home. I've taken my original thoughts…

rust-internals

Considerations or quirks for direct Vec<u8> file writing/reading

I'm working on a program that will involve storing struct instances in data files, and so far have a working process of serialization, writing, reading, and de-serialization directly manipulating the Vec<u8> buffers (I understand serde is a…

rust-users-forum

Code coverage ignore comments

Would like to see an option to add comments to exclude certain lines of code from code coverage like this... println!("Loading..."); let response: ResponseType = match api_lib::get().await { Ok(response) => response, //coverage ignore start Err(err)…

rust-internals

Should CommandExt::exec be safe?

Currently CommandExt::exec is safe although successful exec does not release resources by either calling destructors or terminating program (so kernel can release resources by its own). Therefore my suggestion is to make exec unsafe, as this…

rust-internals

Serde: Implementing deserialize_struct for my custom deserializer

I try to implement my own custom Serde deserializer. I made some progress with simple data types, but struggle to get deserialize_struct working. The signature looks like fn deserialize_struct<V>( self, name: &'static str, fields: &'static [&'static…

rust-users-forum

444 items available