commit | 4e514b5079b540beb2ea224cd1114bb88a9eebe1 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Fri Aug 30 03:38:56 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Fri Aug 30 03:38:56 2024 +0000 |
tree | 6995d7a418836c003e9a3fcebf36003464bc10cb | |
parent | a77c4970b0e479b8d430aeaa6b9ce880e9c74bdd [diff] | |
parent | ed64723e41a4251fe78236cadc9b7b0c52ffa7fe [diff] |
Migrate 25 crates to monorepo. am: ed64723e41 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/thread_local/+/3248498 Change-Id: Ic03461d8b09f9f992e1f3e53a6c5348999595111 Signed-off-by: Automerger Merge Worker <[email protected]>
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.