2 releases

0.1.1 Jun 22, 2023
0.1.0 Feb 17, 2022

#821 in Rust patterns

Download history 54092/week @ 2023-12-13 50891/week @ 2023-12-20 38734/week @ 2023-12-27 44915/week @ 2024-01-03 55426/week @ 2024-01-10 52424/week @ 2024-01-17 62832/week @ 2024-01-24 62671/week @ 2024-01-31 67633/week @ 2024-02-07 57399/week @ 2024-02-14 60443/week @ 2024-02-21 64273/week @ 2024-02-28 64189/week @ 2024-03-06 74444/week @ 2024-03-13 77528/week @ 2024-03-20 73882/week @ 2024-03-27

299,746 downloads per month
Used in 279 crates (5 directly)

Apache-2.0

5KB
84 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