Skip to content

Commit d31c418

Browse files
mamartelunknown
authored andcommitted
Update README.md
Change `Share` to `Sync`(see mrmonday/rust@8f1b4f0). Add a "Getting Started" section.
1 parent 0e8b270 commit d31c418

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,26 @@ unique type that implements `Deref<TYPE>` and stores it in a static with name `N
2929
On first deref, `EXPR` gets evaluated and stored internally, such that all further derefs
3030
can 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`
3333
trait.
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

3754
Using the macro:

0 commit comments

Comments
 (0)