#thread-local #thread-local-storage #local-storage #tls #scoped #standard #macro

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

#99 in Rust patterns

Download history 396611/week @ 2023-12-18 227408/week @ 2023-12-25 384454/week @ 2024-01-01 474377/week @ 2024-01-08 446047/week @ 2024-01-15 428417/week @ 2024-01-22 444507/week @ 2024-01-29 451255/week @ 2024-02-05 460651/week @ 2024-02-12 444672/week @ 2024-02-19 475105/week @ 2024-02-26 477728/week @ 2024-03-04 461282/week @ 2024-03-11 482122/week @ 2024-03-18 492494/week @ 2024-03-25 519512/week @ 2024-04-01

1,986,552 downloads per month
Used in 3,930 crates (57 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