| commit | 5c6aa0594ac6f7eebda9f1d8ff794294754d3ce8 | [log] [tgz] |
|---|---|---|
| author | Android Build Coastguard Worker <[email protected]> | Wed Sep 11 23:30:32 2024 +0000 |
| committer | Android Build Coastguard Worker <[email protected]> | Wed Sep 11 23:30:32 2024 +0000 |
| tree | 6995d7a418836c003e9a3fcebf36003464bc10cb | |
| parent | 7ed7cd64d648fbca3acd32517a3b6cd100705783 [diff] | |
| parent | 4e514b5079b540beb2ea224cd1114bb88a9eebe1 [diff] |
Snap for 12355814 from 4e514b5079b540beb2ea224cd1114bb88a9eebe1 to build-tools-release Change-Id: Ia27bebd87b2d2094b5bacbb67c85eee6983a696d
This library provides the ThreadLocal type which allow a separate copy of an object to be used for each thread. This allows for per-object thread-local storage, unlike the standard library's thread_local! macro which only allows static thread-local storage.
Add this to your Cargo.toml:
[dependencies] thread_local = "1.1"
This crate's minimum supported Rust version (MSRV) is 1.59.0.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.