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)
6 This library provides the `ThreadLocal` and `CachedThreadLocal` types which
7 allow a separate copy of an object to be used for each thread. This allows for
8 per-object thread-local storage, unlike the standard library's `thread_local!`
9 macro which only allows static thread-local storage.
11 [Documentation](https://amanieu.github.io/thread_local-rs/thread_local/index.html)
15 Add this to your `Cargo.toml`:
22 and this to your crate root:
25 extern crate thread_local;
30 Licensed under either of
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)
39 Unless you explicitly state otherwise, any contribution intentionally submitted
40 for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
41 additional terms or conditions.