#thread-local #thread-local-storage #local-storage #tls #scoped #access #scoped-thread-local

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

#78 in Rust patterns

Download history 522160/week @ 2024-07-30 541523/week @ 2024-08-06 558280/week @ 2024-08-13 578054/week @ 2024-08-20 552468/week @ 2024-08-27 587531/week @ 2024-09-03 568816/week @ 2024-09-10 519165/week @ 2024-09-17 600192/week @ 2024-09-24 594945/week @ 2024-10-01 616581/week @ 2024-10-08 639053/week @ 2024-10-15 684834/week @ 2024-10-22 649255/week @ 2024-10-29 655481/week @ 2024-11-05 557502/week @ 2024-11-12

2,662,888 downloads per month
Used in 4,551 crates (60 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