We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 796eeab + 976bc12 commit e17efcbCopy full SHA for e17efcb
src/items/extern-crates.md
@@ -1,5 +1,9 @@
1
# Extern crate declarations
2
3
+> **<sup>Syntax:<sup>**
4
+> _ExternCrate_ :
5
+> `extern` `crate` [IDENTIFIER] (`as` [IDENTIFIER])<sup>?</sup> `;`
6
+
7
An _`extern crate` declaration_ specifies a dependency on an external crate.
8
The external crate is then bound into the declaring scope as the `ident`
9
provided in the `extern_crate_decl`.
@@ -35,3 +39,5 @@ extern crate hello_world; // hyphen replaced with an underscore
35
39
```
36
40
37
41
[RFC 940]: https://github.com/rust-lang/rfcs/blob/master/text/0940-hyphens-considered-harmful.md
42
43
+[IDENTIFIER]: identifiers.html
0 commit comments