@@ -610,7 +610,7 @@ the behavior of the compiler.
610
610
611
611
~~~~
612
612
// Package ID
613
- #[ pkgid = "projx#2.5" ];
613
+ #[ crate_id = "projx#2.5" ];
614
614
615
615
// Additional metadata attributes
616
616
#[ desc = "Project X" ];
@@ -776,9 +776,9 @@ as the `ident` provided in the `extern_mod_decl`.
776
776
The external crate is resolved to a specific ` soname ` at compile time, and a
777
777
runtime linkage requirement to that ` soname ` is passed to the linker for
778
778
loading at runtime. The ` soname ` is resolved at compile time by scanning the
779
- compiler's library path and matching the optional ` pkgid ` provided as a string literal
780
- against the ` pkgid ` attributes that were declared on the external crate when
781
- it was compiled. If no ` pkgid ` is provided, a default ` name ` attribute is
779
+ compiler's library path and matching the optional ` crateid ` provided as a string literal
780
+ against the ` crateid ` attributes that were declared on the external crate when
781
+ it was compiled. If no ` crateid ` is provided, a default ` name ` attribute is
782
782
assumed, equal to the ` ident ` given in the ` extern_mod_decl ` .
783
783
784
784
Four examples of ` extern mod ` declarations:
@@ -1729,7 +1729,7 @@ names are effectively reserved. Some significant attributes include:
1729
1729
* The ` cfg ` attribute, for conditional-compilation by build-configuration.
1730
1730
* The ` lang ` attribute, for custom definitions of traits and functions that are known to the Rust compiler (see [ Language items] ( #language-items ) ).
1731
1731
* The ` link ` attribute, for describing linkage metadata for a extern blocks.
1732
- * The ` pkgid ` attribute, for describing the package ID of a crate.
1732
+ * The ` crate_id ` attribute, for describing the package ID of a crate.
1733
1733
* The ` test ` attribute, for marking functions as unit tests.
1734
1734
* The ` allow ` , ` warn ` , ` forbid ` , and ` deny ` attributes, for
1735
1735
controlling lint checks (see [ Lint check attributes] ( #lint-check-attributes ) ).
@@ -3792,7 +3792,7 @@ specified then log level 4 is assumed. Debug messages can be omitted
3792
3792
by passing ` --cfg ndebug ` to ` rustc ` .
3793
3793
3794
3794
As an example, to see all the logs generated by the compiler, you would set
3795
- ` RUST_LOG ` to ` rustc ` , which is the crate name (as specified in its ` pkgid `
3795
+ ` RUST_LOG ` to ` rustc ` , which is the crate name (as specified in its ` crate_id `
3796
3796
[ attribute] ( #attributes ) ). To narrow down the logs to just crate resolution,
3797
3797
you would set it to ` rustc::metadata::creader ` . To see just error logging
3798
3798
use ` rustc=0 ` .
0 commit comments