What does it mean for Rustc to run "out of TLS keys"?

⚓ Rust    📅 2026-04-23    👤 surdeus    👁️ 3      

surdeus

Since Rust 1.95.0, trying to build my app on Haiku OS fails with this error:

grafik

With Rust 1.89.0 the build went through just fine!

I suppose here "TLS" refers to thread-local storage rather than transport layer security :face_with_raised_eyebrow:

What is causing this? Is this a bug in rustc or in the OS?

Probably not a problem in my code, since the same code compiles (and runs) fine with Rust 1.95.0 on various other OS, including Linux, Windows, macOS and FreeBSD.

Also I do not use thread_local! at all.

Anyways, is there any workaround, like specific rustc settings or changing my code?

Best regards.

1 post - 1 participant

Read full topic

🏷️ Rust_feed