commit | 415aa3852546e244666dd4ac61d20ab359fbcf22 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <[email protected]> | Mon Nov 13 22:43:12 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Mon Nov 13 22:43:12 2023 +0000 |
tree | 1c2c2e42823b3126dc945ed3ec2a6aeee86acdbf | |
parent | f312e6278a95ff5da11bfa5d8b5708a5835b901b [diff] | |
parent | 320f6c6fd91029e7ce58afb6c9d94737b3d90f73 [diff] |
Migrate to cargo_embargo. am: c952b7aca2 am: d318d783fc am: 320f6c6fd9 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/thread_local/+/2828131 Change-Id: Ifc912297274fa88349829f1d972271fba69c5422 Signed-off-by: Automerger Merge Worker <[email protected]>
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.