Skip to content

Commit

Permalink
Don't need extern crate in 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Nilsson committed Mar 16, 2019
1 parent efd29db commit d3c7f13
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/doc/src/guide/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ crates:
name = "hello_world"
version = "0.1.0"
authors = ["Your Name <you@example.com>"]
edition = "2018"

[dependencies]
time = "0.1.12"
Expand Down Expand Up @@ -68,11 +69,9 @@ these dependencies we used.
Now, if `regex` gets updated, we will still build with the same revision until
we choose to `cargo update`.

You can now use the `regex` library using `extern crate` in `main.rs`.
You can now use the `regex` library in `main.rs`.

```rust
extern crate regex;

use regex::Regex;

fn main() {
Expand Down

0 comments on commit d3c7f13

Please sign in to comment.