commit | 05fdf3d570594c72b4a333c7037d6c8be3d4cebd | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Wed Dec 15 16:43:01 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Dec 15 16:43:01 2021 +0000 |
tree | 879d2bd02caa3477ad95271540188e8ab1a8f2fa | |
parent | d72a6267795a87b4402f4ab7178e2c833b491d43 [diff] | |
parent | ab71b0a8ba83545dc247bab78501269e31cc74c1 [diff] |
Merge "Refresh Android.bp, cargo2android.json, TEST_MAPPING." am: 14a929c58f am: ab71b0a8ba Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/thread_local/+/1912835 Change-Id: I0488da60dea54d07f18782c22f558aee4636ae88
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.36.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.