File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 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.
2020The external crate is resolved to a specific ` soname ` at compile time, and a
2121runtime linkage requirement to that ` soname ` is passed to the linker for
2222loading 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,
2626equal to the [ identifier] given in the ` extern crate ` declaration.
2727
2828The ` self ` crate may be imported which creates a binding to the current crate.
@@ -78,6 +78,7 @@ crate to access only its macros.
7878[ `macro_use` attribute ] : ../macros-by-example.md#the-macro_use-attribute
7979[ extern prelude ] : ../names/preludes.md#extern-prelude
8080[ `macro_use` prelude ] : ../names/preludes.md#macro_use-prelude
81+ [ `crate_name` attributes ] : ../crates-and-source-files.md#the-crate_name-attribute
8182
8283<script >
8384(function () {
You can’t perform that action at this time.
0 commit comments