2 releases

0.1.1 Jun 22, 2023
0.1.0 Feb 17, 2022

#270 in Rust patterns

Download history 63965/week @ 2023-11-24 53664/week @ 2023-12-01 53598/week @ 2023-12-08 56251/week @ 2023-12-15 43099/week @ 2023-12-22 41766/week @ 2023-12-29 47649/week @ 2024-01-05 55016/week @ 2024-01-12 58156/week @ 2024-01-19 58097/week @ 2024-01-26 65753/week @ 2024-02-02 67658/week @ 2024-02-09 55329/week @ 2024-02-16 63138/week @ 2024-02-23 61779/week @ 2024-03-01 41191/week @ 2024-03-08

230,253 downloads per month
Used in 273 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