File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ clause can be used to bind the imported crate to a different name.
20
20
The external crate is resolved to a specific ` soname ` at compile time, and a
21
21
runtime linkage requirement to that ` soname ` is passed to the linker for
22
22
loading at runtime. The ` soname ` is resolved at compile time by scanning the
23
- compiler's library path and matching the optional ` crateid ` provided against
24
- the ` crateid ` attributes that were declared on the external crate when it was
25
- compiled. If no ` crateid ` is provided, a default ` name ` attribute is assumed,
23
+ compiler's library path and matching the optional ` crate_name ` provided against
24
+ the [ ` crate_name ` attributes] that were declared on the external crate when it was
25
+ compiled. If no ` crate_name ` is provided, a default ` name ` attribute is assumed,
26
26
equal to the [ identifier] given in the ` extern crate ` declaration.
27
27
28
28
The ` self ` crate may be imported which creates a binding to the current crate.
@@ -78,6 +78,7 @@ crate to access only its macros.
78
78
[ `macro_use` attribute ] : ../macros-by-example.md#the-macro_use-attribute
79
79
[ extern prelude ] : ../names/preludes.md#extern-prelude
80
80
[ `macro_use` prelude ] : ../names/preludes.md#macro_use-prelude
81
+ [ `crate_name` attributes ] : ../crates-and-source-files.md#the-crate_name-attribute
81
82
82
83
<script >
83
84
(function () {
You can’t perform that action at this time.
0 commit comments