#thread-local #thread #map

thread_map

Types that are simple and easy-to-use alternatives to the std::thread_local macro

6 releases (3 stable)

Uses new Rust 2024

new 1.0.3 Apr 25, 2025
1.0.2 Apr 24, 2025
1.0.1 Feb 5, 2025
0.1.0 Dec 31, 2024
0.0.2 Dec 30, 2024

#323 in Concurrency

Download history 22/week @ 2025-01-06 3/week @ 2025-01-13 60/week @ 2025-01-27 206/week @ 2025-02-03 24/week @ 2025-02-10 6/week @ 2025-02-17 1/week @ 2025-02-24 3/week @ 2025-03-03 4/week @ 2025-04-14 213/week @ 2025-04-21

217 downloads per month

MIT license

25KB
476 lines

thread_map

This library provides types that support thread-local values by associating ThreadIds to the values. It is a simple and easy-to-use alternative to the std::thread_local macro and the thread_local crate. It has no dependencies.

Documentation

See the API documentation on docs.rs, which includes an overview and usage examples, and the source repo.

Support

Create a new issue on GitHub.

License

This library is distributed under the terms of the MIT license, with copyright retained by the author.

See LICENSE for details.

No runtime deps