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

#2180 in Web programming

Download history 155466/week @ 2025-02-02 176038/week @ 2025-02-09 172933/week @ 2025-02-16 225007/week @ 2025-02-23 210811/week @ 2025-03-02 217493/week @ 2025-03-09 196149/week @ 2025-03-16 211031/week @ 2025-03-23 200284/week @ 2025-03-30 223121/week @ 2025-04-06 205959/week @ 2025-04-13 213166/week @ 2025-04-20 163977/week @ 2025-04-27 172869/week @ 2025-05-04 200962/week @ 2025-05-11 201794/week @ 2025-05-18

747,034 downloads per month
Used in 437 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