We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e677f34 + 417e19f commit 351a969Copy full SHA for 351a969
src/attribute/crate.md
@@ -4,6 +4,11 @@ The `crate_type` attribute can be used to tell the compiler whether a crate is
4
a binary or a library (and even which type of library), and the `crate_name`
5
attribute can be used to set the name of the crate.
6
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
+
12
```rust,editable
13
// This crate is a library
14
#![crate_type = "lib"]
0 commit comments