1 unstable release

0.1.0 Feb 17, 2022

#1831 in Web programming

Download history 18530/week @ 2023-02-05 27210/week @ 2023-02-12 18122/week @ 2023-02-19 23079/week @ 2023-02-26 15639/week @ 2023-03-05 15584/week @ 2023-03-12 13971/week @ 2023-03-19 16605/week @ 2023-03-26 14622/week @ 2023-04-02 15099/week @ 2023-04-09 13646/week @ 2023-04-16 13604/week @ 2023-04-23 13850/week @ 2023-04-30 13301/week @ 2023-05-07 15774/week @ 2023-05-14 12852/week @ 2023-05-21

56,602 downloads per month
Used in 179 crates (5 directly)

Apache-2.0

4KB
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