commit | d318d783fc945c1c75e0ec8f57202511813d6810 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <qwandor@google.com> | Mon Nov 13 21:38:44 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Nov 13 21:38:44 2023 +0000 |
tree | 1c2c2e42823b3126dc945ed3ec2a6aeee86acdbf | |
parent | 39abd63bd3956fa3cc2e1898a4ae1faee4e5f5da [diff] | |
parent | c952b7aca2059af017f24431e222c5d121760608 [diff] |
Migrate to cargo_embargo. am: c952b7aca2 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/thread_local/+/2828131 Change-Id: I6da1eaf5eca05b2f6875e50b810defbfa58d124f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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.