commit | 769fe94c5151fc3580e2624f0dec49ac83163935 | [log] [tgz] |
---|---|---|
author | Bob Badour <bbadour@google.com> | Tue Mar 23 14:30:09 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Mar 23 14:30:09 2021 +0000 |
tree | d8039a1ffb11378c74b2287a975c5dec58c4c672 | |
parent | f9888f04ef47bb55fa225efb94884fadfeecc386 [diff] | |
parent | a2b6c5c34c307059685286c645cfbffb2df6ae75 [diff] |
[LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/thread_local am: eedd71f3ab am: a2b6c5c34c Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/thread_local/+/1649177 Change-Id: I11b0d1f4cd21fdebcf026990252cff7a5a8ac7c3
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.