Skip to content

Commit 7c85bc4

Browse files
committed
Add instructions for including extern crate declarations to README
1 parent e34b6f6 commit 7c85bc4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,17 @@ error: aborting due to 2 previous errors
2121

2222
Add the following to your crate's `Cargo.toml`:
2323

24-
```
24+
```toml
2525
[dependencies]
2626
avr-std-stub = "1.0"
2727
```
2828

29+
Then add the following to your crate's `lib.rs` or `main.rs`
30+
31+
```rust
32+
extern crate avr_std_stub;
33+
34+
```
35+
36+
**NOTE**: You **must** add an `extern crate` declaration, otherwise the crate will not be linked
37+
and the definitions it provides will not be used.

0 commit comments

Comments
 (0)