]> git.proxmox.com Git - cargo.git/blob - vendor/thread_local/README.md
New upstream version 0.52.0
[cargo.git] / vendor / thread_local / README.md
1 thread_local
2 ============
3
4 [![Build Status](https://travis-ci.org/Amanieu/thread_local-rs.svg?branch=master)](https://travis-ci.org/Amanieu/thread_local-rs) [![Crates.io](https://img.shields.io/crates/v/thread_local.svg)](https://crates.io/crates/thread_local)
5
6 This library provides the `ThreadLocal` type which allow a separate copy of an
7 object to be used for each thread. This allows for per-object thread-local
8 storage, unlike the standard library's `thread_local!` macro which only allows
9 static thread-local storage.
10
11 [Documentation](https://docs.rs/thread_local/)
12
13 ## Usage
14
15 Add this to your `Cargo.toml`:
16
17 ```toml
18 [dependencies]
19 thread_local = "1.1"
20 ```
21
22 ## Minimum Rust version
23
24 This crate's minimum supported Rust version (MSRV) is 1.36.0.
25
26 ## License
27
28 Licensed under either of
29
30 * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
31 * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
32
33 at your option.
34
35 ### Contribution
36
37 Unless you explicitly state otherwise, any contribution intentionally submitted
38 for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
39 additional terms or conditions.