# Latest

**URL:** https://users.rust-lang.org/latest.md

[Latest](https://users.rust-lang.org/latest.md) · [Categories](https://users.rust-lang.org/categories.md)

---

## [Welcome to the Rust programming language users forum](https://users.rust-lang.org/t/welcome-to-the-rust-programming-language-users-forum/77411)

<div class="topic-metadata">

**Author:** [@system](https://users.rust-lang.org/u/system)\
**Replies:** 1\
**Last updated:** [June 24, 2022, 3:56pm UTC](https://users.rust-lang.org/t/welcome-to-the-rust-programming-language-users-forum/77411 "2022-06-24T15:56:48Z")

</div>

This forum is for help, discussion, and announcements related to the Rust programming language. Please read our code of conduct before participating. We will remove any posts that are not respectful, constructive, and o…

---

## [Forum Code Formatting and Syntax Highlighting](https://users.rust-lang.org/t/forum-code-formatting-and-syntax-highlighting/42214)

<div class="topic-metadata">

**Author:** [@chrisd](https://users.rust-lang.org/u/chrisd)\
**Replies:** 3\
**Last updated:** [May 7, 2020, 6:46pm UTC](https://users.rust-lang.org/t/forum-code-formatting-and-syntax-highlighting/42214 "2020-05-07T18:46:41Z")

</div>

To format code in this forum you need to surround the code with three backticks (\`\`\`). For example, typing this... \`\`\` fn main() { println!() } \`\`\` ...will be rendered as highlighted Rust code, like so: fn main() …

---

## [Crate of the week quality rules](https://users.rust-lang.org/t/crate-of-the-week-quality-rules/142609)

<div class="topic-metadata">

**Author:** [@Redglyph](https://users.rust-lang.org/u/Redglyph)\
**Replies:** 5\
**Last updated:** [September 26, 2026, 2:09am UTC](https://users.rust-lang.org/t/crate-of-the-week-quality-rules/142609 "2026-09-26T02:09:02Z")

</div>

I'm wondering if that thread is still relevant when it's mostly an abundance of self-nominations for code written by LLMs... (sorry for the very few that obviously weren't, apparently 2?) Personally, I'm not going to wa…

---

## [Is it possible to quasiquote a concrete version of a generic type inside a proc macro?](https://users.rust-lang.org/t/is-it-possible-to-quasiquote-a-concrete-version-of-a-generic-type-inside-a-proc-macro/142611)

<div class="topic-metadata">

**Author:** [@aquagarced](https://users.rust-lang.org/u/aquagarced)\
**Replies:** 2\
**Last updated:** [September 26, 2026, 2:05am UTC](https://users.rust-lang.org/t/is-it-possible-to-quasiquote-a-concrete-version-of-a-generic-type-inside-a-proc-macro/142611 "2026-09-26T02:05:55Z")

</div>

I believe I've already found a workaround by just matching against the finite number of concrete types and passing the syn::type struct into the function manually, but it would be nice not to have to do that. I was wonde…

---

## [How to provide storage for borrowed structures?](https://users.rust-lang.org/t/how-to-provide-storage-for-borrowed-structures/142534)

<div class="topic-metadata">

**Author:** [@Jookia](https://users.rust-lang.org/u/Jookia)\
**Replies:** 20\
**Last updated:** [September 26, 2026, 1:13am UTC](https://users.rust-lang.org/t/how-to-provide-storage-for-borrowed-structures/142534 "2026-09-26T01:13:59Z")

</div>

So I have some code that looks like this (this is a stand-in for me using a library, so I have to use a lifetime parameter for my struct): #\[derive(Debug)\] struct HelpMe\<'a\> { data: &'a \[u8\], } #\[derive(Debug)\] str…

---

## [What's everyone working on this week (39/2026)?](https://users.rust-lang.org/t/whats-everyone-working-on-this-week-39-2026/142519)

<div class="topic-metadata">

**Author:** [@llogiq](https://users.rust-lang.org/u/llogiq)\
**Replies:** 7\
**Last updated:** [September 25, 2026, 11:15pm UTC](https://users.rust-lang.org/t/whats-everyone-working-on-this-week-39-2026/142519 "2026-09-25T23:15:46Z")

</div>

New week, new Rust! What are you folks up to?

---

## [Hello guys, my homemade 100% Rust IDE has finally make some of it good part, anyways, what should I add to it](https://users.rust-lang.org/t/hello-guys-my-homemade-100-rust-ide-has-finally-make-some-of-it-good-part-anyways-what-should-i-add-to-it/142596)

<div class="topic-metadata">

**Author:** [@Eggchese](https://users.rust-lang.org/u/Eggchese)\
**Replies:** 5\
**Last updated:** [September 25, 2026, 9:39pm UTC](https://users.rust-lang.org/t/hello-guys-my-homemade-100-rust-ide-has-finally-make-some-of-it-good-part-anyways-what-should-i-add-to-it/142596 "2026-09-25T21:39:42Z")

</div>

With only 2.4 MB on idle (depends on your device) at my phone it's can be lightweight I add some relaxing colors to it I add basic cmd so you won't have to get a Ph.D to learn it It has LSP support like Helix It's TU…

---

## [Rotate super-imposed images over each other](https://users.rust-lang.org/t/rotate-super-imposed-images-over-each-other/142599)

<div class="topic-metadata">

**Author:** [@canina](https://users.rust-lang.org/u/canina)\
**Replies:** 9\
**Last updated:** [September 25, 2026, 9:33pm UTC](https://users.rust-lang.org/t/rotate-super-imposed-images-over-each-other/142599 "2026-09-25T21:33:06Z")

</div>

A better explanation is here: Rotate super-imposed images over each other - #4 by canina I have to use async to rotate two images over each other translucently. When trying myself I assumed I needed a big function like. …

---

## [TWiR quote of the week](https://users.rust-lang.org/t/twir-quote-of-the-week/328)

<div class="topic-metadata">

**Author:** [@brson](https://users.rust-lang.org/u/brson)\
**Replies:** 1762\
**Last updated:** [September 25, 2026, 5:27pm UTC](https://users.rust-lang.org/t/twir-quote-of-the-week/328 "2026-09-25T17:27:22Z")

</div>

I'd like to start adding a 'quote of the week' to TWiR. So far though I've been terrible about taking note of good quotes from the Rust world. And also there is much more going on than I can follow personally. So this t…

---

## [Crate of the Week](https://users.rust-lang.org/t/crate-of-the-week/2704)

<div class="topic-metadata">

**Author:** [@llogiq](https://users.rust-lang.org/u/llogiq)\
**Replies:** 1641\
**Last updated:** [September 25, 2026, 4:24am UTC](https://users.rust-lang.org/t/crate-of-the-week/2704 "2026-09-25T04:24:50Z")

</div>

In RFC : Try-Catch Blocks, someone expressed concern over the discoverability of crates. To improve this situation, I suggested to have a "Crate of the Week" similar to TWIR's "Quote of the Week". To jump-start this, I'…

---

## [Rten what is the best model to perform ocr on handwritting?](https://users.rust-lang.org/t/rten-what-is-the-best-model-to-perform-ocr-on-handwritting/142575)

<div class="topic-metadata">

**Author:** [@Joe232](https://users.rust-lang.org/u/Joe232)\
**Replies:** 6\
**Last updated:** [September 25, 2026, 8:43am UTC](https://users.rust-lang.org/t/rten-what-is-the-best-model-to-perform-ocr-on-handwritting/142575 "2026-09-25T08:43:35Z")

</div>

Using this library: GitHub - robertknight/rten: ONNX neural network inference engine · GitHub what is the best model to use to perform ocr on handwriting? let detection\_model\_data = read\_file(&format!("{}/text-detec…

---

## [Cc linkage error](https://users.rust-lang.org/t/cc-linkage-error/142607)

<div class="topic-metadata">

**Author:** [@amRelish](https://users.rust-lang.org/u/amRelish)\
**Replies:** 2\
**Last updated:** [September 25, 2026, 1:06am UTC](https://users.rust-lang.org/t/cc-linkage-error/142607 "2026-09-25T01:06:20Z")

</div>

Hi. I've tried xcode reinstalling, downgrading mac sdk to try and fix this cc linkage issue among other solutions online but none seem to work. error: linking with cc failed: exit status: 1 | = note: "cc" "/Users/Use…

---

## [Created a highly customizable generational arena](https://users.rust-lang.org/t/created-a-highly-customizable-generational-arena/142603)

<div class="topic-metadata">

**Author:** [@izagawd](https://users.rust-lang.org/u/izagawd)\
**Replies:** 6\
**Last updated:** [September 24, 2026, 7:29pm UTC](https://users.rust-lang.org/t/created-a-highly-customizable-generational-arena/142603 "2026-09-24T19:29:41Z")

</div>

I made a generational arena that lets you pick the key size, the key layout and the storage of the arena. You can pick the integer types for the index and the generation, and whether a key stores them as two fields or p…

---

## [Lini 1.0, small language for diagrams and more, that compiles to SVG](https://users.rust-lang.org/t/lini-1-0-small-language-for-diagrams-and-more-that-compiles-to-svg/142605)

<div class="topic-metadata">

**Author:** [@monfa-red](https://users.rust-lang.org/u/monfa-red)\
**Replies:** 0\
**Last updated:** [September 24, 2026, 7:17pm UTC](https://users.rust-lang.org/t/lini-1-0-small-language-for-diagrams-and-more-that-compiles-to-svg/142605 "2026-09-24T19:17:56Z")

</div>

Hey everyone, I've been working on lini for the past 4 months. It's now stable enough for v1.x, thought I'd share it here It's a small language for drawing figures from plain text, and one Rust binary turns it into SVG…

---

## [Help me XY: How can I call pthread\_kill without TOCTOU risk](https://users.rust-lang.org/t/help-me-xy-how-can-i-call-pthread-kill-without-toctou-risk/142552)

<div class="topic-metadata">

**Author:** [@MusicalNinjaDad](https://users.rust-lang.org/u/MusicalNinjaDad)\
**Replies:** 8\
**Last updated:** [September 24, 2026, 1:40pm UTC](https://users.rust-lang.org/t/help-me-xy-how-can-i-call-pthread-kill-without-toctou-risk/142552 "2026-09-24T13:40:19Z")

</div>

I really hope this can be XY-ed into something else (as that will likely also provide options for better UX in the future). I need to kill some background threads that I spawned. I don't want to risk TOCTOU between Join…

---

## [How to build expanding include\_str!("\_\_index.js") expanded to literal r#"\<index.js raw text\>"# in main.rs?](https://users.rust-lang.org/t/how-to-build-expanding-include-str-index-js-expanded-to-literal-r-index-js-raw-text-in-main-rs/142557)

<div class="topic-metadata">

**Author:** [@guest271314](https://users.rust-lang.org/u/guest271314)\
**Replies:** 8\
**Last updated:** [September 24, 2026, 10:30am UTC](https://users.rust-lang.org/t/how-to-build-expanding-include-str-index-js-expanded-to-literal-r-index-js-raw-text-in-main-rs/142557 "2026-09-24T10:30:04Z")

</div>

How to expand something like this, Rust source code referencing a file is src directory, in src/main.rs source code let js\_code = include\_str!("\_\_index.js"); into this // Actual source code raw text of \`\_\_index.js\` le…

---

## [What's everyone working on this week (38/2026)?](https://users.rust-lang.org/t/whats-everyone-working-on-this-week-38-2026/142419)

<div class="topic-metadata">

**Author:** [@llogiq](https://users.rust-lang.org/u/llogiq)\
**Replies:** 27\
**Last updated:** [September 24, 2026, 9:06am UTC](https://users.rust-lang.org/t/whats-everyone-working-on-this-week-38-2026/142419 "2026-09-24T09:06:18Z")

</div>

New week, new Rust! What are you folks up to?

---

## [Understanding UnwindSafe :)](https://users.rust-lang.org/t/understanding-unwindsafe/142590)

<div class="topic-metadata">

**Author:** [@okkotsu](https://users.rust-lang.org/u/okkotsu)\
**Replies:** 4\
**Last updated:** [September 24, 2026, 6:33am UTC](https://users.rust-lang.org/t/understanding-unwindsafe/142590 "2026-09-24T06:33:19Z")

</div>

hi folks! It's getting a bit difficult to wrap my head around this... Simply put, a type T implements UnwindSafe if it cannot easily allow witnessing a broken invariant through the use of catch\_unwind (catching a panic…

---

## [Announcement topic category](https://users.rust-lang.org/t/announcement-topic-category/142378)

<div class="topic-metadata">

**Author:** [@oli\_obk](https://users.rust-lang.org/u/oli_obk)\
**Replies:** 53\
**Last updated:** [September 24, 2026, 5:41am UTC](https://users.rust-lang.org/t/announcement-topic-category/142378 "2026-09-24T05:41:50Z")

</div>

Hi everyone! We (mods) noticed that the announcement category was getting more and more posts, but also the quality went down. This isn't just our subjective view, but also noticeable due to the fact that y'all don't re…

---

## [How to concatenate integers?](https://users.rust-lang.org/t/how-to-concatenate-integers/142426)

<div class="topic-metadata">

**Author:** [@canina](https://users.rust-lang.org/u/canina)\
**Replies:** 9\
**Last updated:** [September 24, 2026, 1:33am UTC](https://users.rust-lang.org/t/how-to-concatenate-integers/142426 "2026-09-24T01:33:50Z")

</div>

const WIDTH: usize = 900; const HEIGHT: usize = 900; struct Image { width: usize, height: usize, buffer: Vec\<u32\>, } impl Image { fn load(filename: &str) -\> Image { let image = lodep…

---

## [Code review on a multithreaded server](https://users.rust-lang.org/t/code-review-on-a-multithreaded-server/142589)

<div class="topic-metadata">

**Author:** [@dositadi](https://users.rust-lang.org/u/dositadi)\
**Replies:** 0\
**Last updated:** [September 23, 2026, 10:47pm UTC](https://users.rust-lang.org/t/code-review-on-a-multithreaded-server/142589 "2026-09-23T22:47:14Z")

</div>

Good evening guys, I am new to rust and have been trying my best to adapt to the language, though i come from a Golang background. So, in the course of learning the language, I built this little project, to understand ho…

---

## [\`typed-ident\`: Type-safe identifier validation, inspection, and mutation. (and a retrospective article!)](https://users.rust-lang.org/t/typed-ident-type-safe-identifier-validation-inspection-and-mutation-and-a-retrospective-article/142338)

<div class="topic-metadata">

**Author:** [@sigseis](https://users.rust-lang.org/u/sigseis)\
**Replies:** 1\
**Last updated:** [September 23, 2026, 8:22pm UTC](https://users.rust-lang.org/t/typed-ident-type-safe-identifier-validation-inspection-and-mutation-and-a-retrospective-article/142338 "2026-09-23T20:22:16Z")

</div>

Hey everyone! I'm very happy to announce that I've published my first open-source Rust crate! I really like to express things in Rust in terms of concrete types (kind of like how one could keep paths as strings in a la…

---

## [Image does not fill window correctly, when rotating](https://users.rust-lang.org/t/image-does-not-fill-window-correctly-when-rotating/142548)

<div class="topic-metadata">

**Author:** [@canina](https://users.rust-lang.org/u/canina)\
**Replies:** 10\
**Last updated:** [September 23, 2026, 6:12pm UTC](https://users.rust-lang.org/t/image-does-not-fill-window-correctly-when-rotating/142548 "2026-09-23T18:12:21Z")

</div>

It should show the images not being stretched out, I am unsure why this happens. This is specifically only about mode 3 main.rs lib.rs

---

## [PLT symbols with \`cxx-build\`](https://users.rust-lang.org/t/plt-symbols-with-cxx-build/142504)

<div class="topic-metadata">

**Author:** [@utkubod](https://users.rust-lang.org/u/utkubod)\
**Replies:** 8\
**Last updated:** [September 23, 2026, 12:58pm UTC](https://users.rust-lang.org/t/plt-symbols-with-cxx-build/142504 "2026-09-23T12:58:02Z")

</div>

Hey folks, sorry if this is the wrong place to post this, but I can't really distinguish whether this problem is related to cxx, rustc, rust-lld, or gcc, static linking or something else entirely. I'm working on a proje…

---

## [Jason Walton's Abridged Official Rust book version is useful](https://users.rust-lang.org/t/jason-waltons-abridged-official-rust-book-version-is-useful/142574)

<div class="topic-metadata">

**Author:** [@StefanSalewski](https://users.rust-lang.org/u/StefanSalewski)\
**Replies:** 0\
**Last updated:** [September 23, 2026, 10:46am UTC](https://users.rust-lang.org/t/jason-waltons-abridged-official-rust-book-version-is-useful/142574 "2026-09-23T10:46:35Z")

</div>

At least for some people, or as a second read after the official Rust tutorial book. I just read the first 7 chapters of the shipped PDF version, and I think it is quite useful for refreshing my memory. The first 10 pag…

---

## [Proposal for the Future LLM Policy Sub-Team: Minimizing Reviewer Cognitive Overhead](https://users.rust-lang.org/t/proposal-for-the-future-llm-policy-sub-team-minimizing-reviewer-cognitive-overhead/141740)

<div class="topic-metadata">

**Author:** [@semmyenator](https://users.rust-lang.org/u/semmyenator)\
**Replies:** 20\
**Last updated:** [September 23, 2026, 2:00pm UTC](https://users.rust-lang.org/t/proposal-for-the-future-llm-policy-sub-team-minimizing-reviewer-cognitive-overhead/141740 "2026-09-23T14:00:51Z")

</div>

Proposal for the Future LLM Policy Sub-Team: Minimizing Reviewer Cognitive Overhead Acknowledging the Pragmatic Reality of Reviewer Burden First, thank you to the maintainers, team leads, and moderators who put time into…

---

## [Looking for examples of new protocol families?](https://users.rust-lang.org/t/looking-for-examples-of-new-protocol-families/142510)

<div class="topic-metadata">

**Author:** [@pawndown](https://users.rust-lang.org/u/pawndown)\
**Replies:** 3\
**Last updated:** [September 23, 2026, 2:53am UTC](https://users.rust-lang.org/t/looking-for-examples-of-new-protocol-families/142510 "2026-09-23T02:53:41Z")

</div>

Hi - I am looking to port an LKM over to Rust and it's been difficult getting started. What the LKM does is create a new address families at the application and transport layer. What I'm looking for are examples to help…

---

## [Error in installation dotenvy](https://users.rust-lang.org/t/error-in-installation-dotenvy/142556)

<div class="topic-metadata">

**Author:** [@proRust](https://users.rust-lang.org/u/proRust)\
**Replies:** 1\
**Last updated:** [September 22, 2026, 11:51pm UTC](https://users.rust-lang.org/t/error-in-installation-dotenvy/142556 "2026-09-22T23:51:01Z")

</div>

Hello everyone when i try install dotenvy en me project, the cli appears this error. I don't know how to fix this. Can anyone help me? ❯ cargo install dotenvy Updating crates.io index Installing dotenvy v0.15.7 Up…

---

## [Any insights on gccrs?](https://users.rust-lang.org/t/any-insights-on-gccrs/142532)

<div class="topic-metadata">

**Author:** [@pawndown](https://users.rust-lang.org/u/pawndown)\
**Replies:** 2\
**Last updated:** [September 22, 2026, 7:21pm UTC](https://users.rust-lang.org/t/any-insights-on-gccrs/142532 "2026-09-22T19:21:14Z")

</div>

I keep hearing gccrs is making good progress and I think is able to compile a rust kernel, though not clear on this. I am running GCC 15 and heard that 16 would likely be doable. I am starting work on an LKM and would re…

---

## [What-if: crates.io paid subscription for commercial use](https://users.rust-lang.org/t/what-if-crates-io-paid-subscription-for-commercial-use/35353)

<div class="topic-metadata">

**Author:** [@erlend\_sh](https://users.rust-lang.org/u/erlend_sh)\
**Replies:** 36\
**Last updated:** [September 22, 2026, 6:09pm UTC](https://users.rust-lang.org/t/what-if-crates-io-paid-subscription-for-commercial-use/35353 "2026-09-22T18:09:20Z")

</div>

In @nikomatsakis' 2020 blog post, he calls for a shift in focus "from adoption to investment. (...) for Rust to really thrive, we need to see more people paid for their work on Rust teams. I wanna accept that call-to…

[Next page](https://users.rust-lang.org/latest.md?page=1)
