Skip to content

Commit 351a969

Browse files
authored
Merge pull request #952 from outkaj/master
Fixes #890
2 parents e677f34 + 417e19f commit 351a969

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/attribute/crate.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ The `crate_type` attribute can be used to tell the compiler whether a crate is
44
a binary or a library (and even which type of library), and the `crate_name`
55
attribute can be used to set the name of the crate.
66

7+
However, it is important to note that both the `crate_type` and `crate_name`
8+
attributes have **no** effect whatsoever when using Cargo, the Rust package
9+
manager. Since Cargo is used for the majority of Rust projects, this means
10+
real-world uses of `crate-type` and `crate_name` are relatively limited.
11+
712
```rust,editable
813
// This crate is a library
914
#![crate_type = "lib"]

0 commit comments

Comments
 (0)