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