Bug: 153119948

Clone this repo:
  1. ec909e4 Migrate to cargo_embargo. am: c952b7aca2 am: be123d3431 am: eed8f2116b by Andrew Walbran · 6 months ago main master
  2. 415aa38 Migrate to cargo_embargo. am: c952b7aca2 am: d318d783fc am: 320f6c6fd9 by Andrew Walbran · 6 months ago
  3. eed8f21 Migrate to cargo_embargo. am: c952b7aca2 am: be123d3431 by Andrew Walbran · 6 months ago
  4. 320f6c6 Migrate to cargo_embargo. am: c952b7aca2 am: d318d783fc by Andrew Walbran · 6 months ago
  5. d318d78 Migrate to cargo_embargo. am: c952b7aca2 by Andrew Walbran · 6 months ago

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.