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
29
29
On first deref, ` EXPR ` gets evaluated and stored internally, such that all further derefs
30
30
can return a reference to the same object.
31
31
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 `
33
33
trait.
34
34
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
+ ```
35
52
# Example
36
53
37
54
Using the macro:
You can’t perform that action at this time.
0 commit comments