4 releases (1 stable)

1.0.0 Oct 12, 2024
0.1.2 Oct 10, 2024
0.1.1 Jun 22, 2023
0.1.0 Feb 17, 2022

#205 in Rust patterns

Download history 184416/week @ 2024-12-14 55384/week @ 2024-12-21 95220/week @ 2024-12-28 217826/week @ 2025-01-04 247607/week @ 2025-01-11 173937/week @ 2025-01-18 151550/week @ 2025-01-25 155507/week @ 2025-02-01 173528/week @ 2025-02-08 171654/week @ 2025-02-15 225810/week @ 2025-02-22 211653/week @ 2025-03-01 215778/week @ 2025-03-08 197170/week @ 2025-03-15 211642/week @ 2025-03-22 169147/week @ 2025-03-29

828,839 downloads per month
Used in 418 crates (6 directly)

Apache-2.0

5KB
85 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.

Dependencies

~10KB