| commit | a77c4970b0e479b8d430aeaa6b9ce880e9c74bdd | [log] [tgz] |
|---|---|---|
| author | James Farrell <jamesfarrell@google.com> | Tue Aug 06 22:22:16 2024 +0000 |
| committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Aug 06 22:22:16 2024 +0000 |
| tree | c208ebf12982258dc3e0e7d5a5c92d069ff97f7f | |
| parent | d1fc2df90fb52f5562a09ae011f9d6c429b6cdd9 [diff] | |
| parent | 669575570fd72088101ddf1b8df86d1131fab82c [diff] |
Update Android.bp by running cargo_embargo am: 669575570f Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/thread_local/+/3209044 Change-Id: I46790b43a862597550f104455890c0db5d5e23dd 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.