commit | ed64723e41a4251fe78236cadc9b7b0c52ffa7fe | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Thu Aug 29 16:50:02 2024 +0000 |
committer | James Farrell <[email protected]> | Thu Aug 29 16:50:02 2024 +0000 |
tree | 6995d7a418836c003e9a3fcebf36003464bc10cb | |
parent | 669575570fd72088101ddf1b8df86d1131fab82c [diff] |
Migrate 25 crates to monorepo. sec1 semver serde_cbor serde_derive shared_library slab smallvec smccc socket2 spin spki strsim strum strum_macros sync_wrapper syn-mid synstructure tempfile termcolor termtree textwrap thiserror thread_local tinytemplate tokio-macros Bug: 339424309 Test: treehugger Change-Id: Ie1276a8f4f4e4f3888f5d3c1483724ade20a7e16
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.