commit | b28e5bc0e94741dd46983276586fdf08ebb3bace | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Fri Feb 17 22:21:16 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Feb 17 22:21:16 2023 +0000 |
tree | fca6e46b70bad6ee4fb8ad4463affed590fb6d63 | |
parent | 0339f9f56cd4d9b4a27da6f6305942c73f38692c [diff] | |
parent | 7b3c674a526bbcbd90ab0c5b84037c47b7db7e44 [diff] |
Upgrade thread_local to 1.1.7 am: 4039605b26 am: 8180afdffe am: 7b3c674a52 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/thread_local/+/2442943 Change-Id: I7bcb44054760e03bbca2bc034a12befa5aacc1ef 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.