]> git.proxmox.com Git - rustc.git/blame - vendor/thread_local-0.3.6/README.md
New upstream version 1.44.1+dfsg1
[rustc.git] / vendor / thread_local-0.3.6 / README.md
CommitLineData
74b04a01
XL
1thread_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
6This library provides the `ThreadLocal` and `CachedThreadLocal` types which
7allow a separate copy of an object to be used for each thread. This allows for
8per-object thread-local storage, unlike the standard library's `thread_local!`
9macro which only allows static thread-local storage.
10
11[Documentation](https://amanieu.github.io/thread_local-rs/thread_local/index.html)
12
13## Usage
14
15Add this to your `Cargo.toml`:
16
17```toml
18[dependencies]
19thread_local = "0.3"
20```
21
22and this to your crate root:
23
24```rust
25extern crate thread_local;
26```
27
28## License
29
30Licensed under either of
31
32 * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
33 * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
34
35at your option.
36
37### Contribution
38
39Unless you explicitly state otherwise, any contribution intentionally submitted
40for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
41additional terms or conditions.