4 releases (1 stable)

1.0.0 Oct 12, 2024
0.1.2 Oct 10, 2024
0.1.1 Jun 22, 2023
0.1.0 Feb 17, 2022

#207 in Rust patterns

Download history 60916/week @ 2024-09-24 61064/week @ 2024-10-01 48444/week @ 2024-10-08 60616/week @ 2024-10-15 55649/week @ 2024-10-22 60439/week @ 2024-10-29 53841/week @ 2024-11-05 88248/week @ 2024-11-12 82718/week @ 2024-11-19 58309/week @ 2024-11-26 86917/week @ 2024-12-03 171711/week @ 2024-12-10 155027/week @ 2024-12-17 54101/week @ 2024-12-24 114256/week @ 2024-12-31 198909/week @ 2025-01-07

562,385 downloads per month
Used in 407 crates (6 directly)

Apache-2.0

5KB
85 lines

better_scoped_tls

This crate provides an opinionated version of scoped-tls.

Scoped thread local variables created by this crate will panic with a good message on usage without .set, like

You should perform this operation in the closure passed to `set` of better_scoped_tls::tests::TESTTLS

Syntax is exactly same to the original scoped-tls.


lib.rs:

Better scoped thread local storage.

Dependencies

~10KB