Bug: 153119948

Clone this repo:
  1. 4e514b5 Migrate 25 crates to monorepo. am: ed64723e41 by James Farrell · 5 months ago main master
  2. ed64723 Migrate 25 crates to monorepo. by James Farrell · 5 months ago
  3. a77c497 Update Android.bp by running cargo_embargo am: 669575570f by James Farrell · 6 months ago
  4. 6695755 Update Android.bp by running cargo_embargo by James Farrell · 6 months ago
  5. d1fc2df Update Android.bp by running cargo_embargo am: ae9f194478 am: 2e9be23a7c by James Farrell · 8 months ago android15-tests-dev

thread_local

Build Status Crates.io

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.

Documentation

Usage

Add this to your Cargo.toml:

[dependencies]
thread_local = "1.1"

Minimum Rust version

This crate's minimum supported Rust version (MSRV) is 1.59.0.

License

Licensed under either of

at your option.

Contribution

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.