2 releases

0.1.1 Jun 22, 2023
0.1.0 Feb 17, 2022

#318 in Rust patterns

Download history 50090/week @ 2024-01-06 54750/week @ 2024-01-13 58584/week @ 2024-01-20 61464/week @ 2024-01-27 65189/week @ 2024-02-03 64623/week @ 2024-02-10 55871/week @ 2024-02-17 64601/week @ 2024-02-24 60814/week @ 2024-03-02 66767/week @ 2024-03-09 80019/week @ 2024-03-16 83072/week @ 2024-03-23 85800/week @ 2024-03-30 73708/week @ 2024-04-06 78448/week @ 2024-04-13 63682/week @ 2024-04-20

315,858 downloads per month
Used in 281 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