Skip to content

Commit 553e6d1

Browse files
authored
Auto merge of #3073 - pnkfelix:clarify-lib.name-in-Cargo.toml, r=alexcrichton
doc fix: clarify lib.name property doc fix: clarify lib.name property `extern crate` uses `lib.name`; default is post '-' => '_' substitution.
2 parents 9419e3f + 5c4f312 commit 553e6d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/doc/manifest.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,9 @@ specified.
484484

485485
[lib]
486486
# The name of a target is the name of the library that will be generated. This
487-
# is defaulted to the name of the package or project.
487+
# is defaulted to the name of the package or project, with any dashes replaced
488+
# with underscores. (Rust `extern crate` declarations reference this name;
489+
# therefore the value must be a valid Rust identifier to be usable.)
488490
name = "foo"
489491

490492
# This field points at where the crate is located, relative to the `Cargo.toml`.

0 commit comments

Comments
 (0)