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

Is there a crate providing bindings to the Qt C++ API?

I would like to use Qt via the procedural style (as opposed to the declarative QML) and so far have found multiple crates that allow writing a QObject subclass in Rust and exposing it to QML/C++ (cxx-qt, qmetaobject, ...), but not many that provide…

rust-users-forum

Add maximum and minimum and other functions

There should be a convenience way to get the maximum of an array or a set. Which would work like this. assert_eq!([1,2,3].maximum(), 3); assert_eq!([1,2,3].minimum(), 1); 6 posts - 5 participants Read full topic

rust-internals

How to write a method which works with any type int?

Recently I needed a method converting time in 24 hours format in the twelve hours format. AI gave me a perfect solution as: pub fn convert_24_to_12(hour_24: u32) -> Result<(u32, bool), Box<dyn Error>> { // Validate ranges if hour_24 > 23 { return…

rust-users-forum

Mystery of the `clib` and `inwelling` crates

I'm trying to use the tcl crate, which provides bindings for the Tcl programming language. However, I get compile errors from the crate not generating the raw bindings during build time that it uses to provide the higher-level bindings, even though…

rust-users-forum

Rust commercial apps and public SDK/plugins

Hi! First off bear with me I'm a hobbyist C++ guy, and I basically have zero Rust experience (yet). I mostly build apps that are targeted to the creative industry, think 3D viewers, media players, etc... Lots of UI, GPU shaders, high performance…

rust-users-forum

Pre-RFC: Orthogonal Discriminants

Summary Right now the layout algorithm is mixed up with the type of the discriminant. This RFC splits those up better for more flexibilty and new functionality. Motivation Quick! What's the difference between #[repr(Rust, u32)], #[repr(u32)], and…

rust-internals

Permissive Borrows

cc @RalfJung, who asked me to write up my thoughts on a new aliasing model I've spent a lot of time recently working on a new aliasing model, which I call Permissive Borrows. This post is meant to introduce the model. It's written vaguely in the…

rust-internals

Idea: Shared Mutable References (`&shr mut T`)

Motivation &T and &mut T literally mean immutable references and mutable references, but more exactly, shared references and exclusive references. &mut T is mutable, also exclusive (assuming that we are not talking about UnsafePinned). That's not…

rust-internals

What is source of provenance for locals of async blocks?

I was looking on conditions which allow a reference to escape its block syntactically, as in the example below. // Subscription adds the reference to static BTreeMap<usize, &'static mut u32> // new_event() increments all subscribed values fn…

rust-internals

Idea: Alias as a common abstraction over Share and Reborrow

I have been thinking about the relationship between the proposed Reborrow work and the recent Share/cheap-clone ideas. I think there may be a useful common abstraction above them: (Updated full design here) unsafe auto trait Alias {} trait Share {…

rust-internals

Idea: Optics types, combining pattern types and view types

Here is a naive idea inspired by the optics (lens and prisms) in bidirectional transformation. Given the view types like lens that provides partial view and update for product types, and pattern types like prisms that provides partial view and…

rust-internals

Declarative macro re-invocation using `self!`, and macro arm privacy

Sometimes a macro needs to use a helper macro to perform some operation (e.g. summing the number of items passed in). Declaring and exporting a secondary helper macro unfortunately allows a downstream crate to depend upon it (e.g. if they manually…

rust-internals

Generic Variables: simple implicity context passing

Hello everyone I have an idea for a new language feature to solve the problem of types that depend on runtime context to be meaningful. I also made a post about this on Zulip [1], but it isn't getting much traction so I want to share the idea here…

rust-internals

[feat] `#[doctest(off)]` for forward comment scenario

feat #[doctest(off)] for forward comment scenario problem https://crates.io/crates/typify Crate typify have 26,523,578 total downloads. Test failures occur because comments are forwarded without being sanitized, due to Rust comments are executable…

rust-internals

Freezing uninitialized values (freeze loads)

tl;dr I would like to add the following function to the language and the standard library: // in `core::ptr` pub unsafe fn read_freeze<T>(ptr: *const T) -> T; This function works like core::ptr::read(), but if the value is not initialized, it…

rust-internals

`const fn` specialization

I've been re-reading Tracking Issue for const_eval_select · Issue #124625 · rust-lang/rust · GitHub today because I wanted to make a function that currently uses intrinsics const fn. There is Tracking Issue for constifying x86 intrinsics in stdarch…

rust-internals

444 items available