File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,26 @@ unique type that implements `Deref<TYPE>` and stores it in a static with name `N
2929On first deref, ` EXPR ` gets evaluated and stored internally, such that all further derefs
3030can return a reference to the same object.
3131
32- Like regular ` static mut ` s, this macro only works for types that fulfill the ` Share `
32+ Like regular ` static mut ` s, this macro only works for types that fulfill the ` Sync `
3333trait.
3434
35+ # Getting Started
36+
37+ [ lazy-static.rs is available on create.io] ( https://crates.io/crates/lazy_static ) .
38+ Add the following dependency to your Cargo manifest to get the latest version of the 0.1 branch:
39+ ```
40+ [dependencies]
41+
42+ lazy_static = "0.1.*"
43+ ```
44+
45+ To always get the latest version, add this git repository to your
46+ Cargo manifest:
47+
48+ ```
49+ [dependencies.lazy_static]
50+ git = "https://github.com/Kimundi/lazy-static.rs"
51+ ```
3552# Example
3653
3754Using the macro:
You can’t perform that action at this time.
0 commit comments