commit | eed8f2116b894b23e2fe0a63757036d649993b01 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <qwandor@google.com> | Mon Nov 13 22:11:12 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Nov 13 22:11:12 2023 +0000 |
tree | 1c2c2e42823b3126dc945ed3ec2a6aeee86acdbf | |
parent | 320f6c6fd91029e7ce58afb6c9d94737b3d90f73 [diff] | |
parent | be123d34311f71b48fbd51e8cea4f96d5051dc95 [diff] |
Migrate to cargo_embargo. am: c952b7aca2 am: be123d3431 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/thread_local/+/2828131 Change-Id: I96210af9e03c5ed47208262ad651614bda01d20a 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.