2 releases

0.1.1 Jun 22, 2023
0.1.0 Feb 17, 2022

#408 in Rust patterns

Download history 77766/week @ 2024-03-14 77798/week @ 2024-03-21 90434/week @ 2024-03-28 74678/week @ 2024-04-04 77751/week @ 2024-04-11 78253/week @ 2024-04-18 47782/week @ 2024-04-25 47158/week @ 2024-05-02 47436/week @ 2024-05-09 55329/week @ 2024-05-16 53639/week @ 2024-05-23 45877/week @ 2024-05-30 50800/week @ 2024-06-06 46820/week @ 2024-06-13 48413/week @ 2024-06-20 40032/week @ 2024-06-27

195,195 downloads per month
Used in 298 crates (6 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