commit | ec909e419b98bdac2f0b20fa8e1b6d58188e2a89 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <[email protected]> | Mon Nov 13 22:44:22 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Mon Nov 13 22:44:22 2023 +0000 |
tree | 1c2c2e42823b3126dc945ed3ec2a6aeee86acdbf | |
parent | 415aa3852546e244666dd4ac61d20ab359fbcf22 [diff] | |
parent | eed8f2116b894b23e2fe0a63757036d649993b01 [diff] |
Migrate to cargo_embargo. am: c952b7aca2 am: be123d3431 am: eed8f2116b Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/thread_local/+/2828131 Change-Id: I7c08ad5e019a7fddb3e3c177dedb15b8c521e8fa 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.