| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| benches/ | 04-Jul-2025 | - | 26 | 21 | ||
| src/ | 04-Jul-2025 | - | 1,111 | 767 | ||
| .android-checksum.json | D | 04-Jul-2025 | 1.3 KiB | 1 | 1 | |
| .cargo-checksum.json | D | 04-Jul-2025 | 842 | 1 | 1 | |
| Android.bp | D | 04-Jul-2025 | 1.3 KiB | 56 | 51 | |
| Cargo.toml | D | 04-Jul-2025 | 1.1 KiB | 44 | 37 | |
| LICENSE | D | 04-Jul-2025 | 10.6 KiB | 202 | 169 | |
| LICENSE-APACHE | D | 04-Jul-2025 | 10.6 KiB | 202 | 169 | |
| METADATA | D | 04-Jul-2025 | 388 | 18 | 17 | |
| MODULE_LICENSE_APACHE2 | D | 04-Jul-2025 | 0 | |||
| README.md | D | 04-Jul-2025 | 1.2 KiB | 40 | 25 | |
| TEST_MAPPING | D | 04-Jul-2025 | 235 | 14 | 13 | |
| cargo_embargo.json | D | 04-Jul-2025 | 69 | 6 | 5 |
README.md
1thread_local 2============ 3 4[](https://github.com/Amanieu/thread_local-rs/actions) [](https://crates.io/crates/thread_local) 5 6This library provides the `ThreadLocal` type which allow a separate copy of an 7object to be used for each thread. This allows for per-object thread-local 8storage, unlike the standard library's `thread_local!` macro which only allows 9static thread-local storage. 10 11[Documentation](https://docs.rs/thread_local/) 12 13## Usage 14 15Add this to your `Cargo.toml`: 16 17```toml 18[dependencies] 19thread_local = "1.1" 20``` 21 22## Minimum Rust version 23 24This crate's minimum supported Rust version (MSRV) is 1.59.0. 25 26## License 27 28Licensed under either of 29 30 * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) 31 * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) 32 33at your option. 34 35### Contribution 36 37Unless you explicitly state otherwise, any contribution intentionally submitted 38for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any 39additional terms or conditions. 40