#tls #standard-library #scoped-thread #thread-local #concurrency #type-parameter #scoped-thread-local #old-standard #providing-scoped #particular-lifetime

scoped-tls

Library implementation of the standard library’s old scoped_thread_local! macro for providing scoped access to thread local storage (TLS) so any type can be stored into TLS

5 releases (2 stable)

Uses old Rust 2015

1.0.1 Oct 31, 2022
1.0.0 Feb 26, 2019
0.1.2 May 3, 2018
0.1.1 Mar 3, 2018
0.1.0 Mar 23, 2016

#63 in Rust patterns

Download history 471899/week @ 2023-11-01 459171/week @ 2023-11-08 459673/week @ 2023-11-15 342594/week @ 2023-11-22 391705/week @ 2023-11-29 418866/week @ 2023-12-06 443206/week @ 2023-12-13 311663/week @ 2023-12-20 263640/week @ 2023-12-27 454908/week @ 2024-01-03 462343/week @ 2024-01-10 452471/week @ 2024-01-17 427107/week @ 2024-01-24 452050/week @ 2024-01-31 448316/week @ 2024-02-07 375172/week @ 2024-02-14

1,784,024 downloads per month
Used in 3,730 crates (55 directly)

MIT/Apache

10KB
134 lines

scoped-tls

Build Status Build status

Documentation

A Rust library providing the old standard library's scoped_thread_local! macro as a library implementation on crates.io.

# Cargo.toml
[dependencies]
scoped-tls = "1.0"

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Serde by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps