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.
1 parent 1788c74 commit 180cf1bCopy full SHA for 180cf1b
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 the `crate_type` attribute has **no**
8
+effect whatsoever when using Cargo, the Rust package manager. Since Cargo is
9
+used for the majority of Rust projects, this means real-world uses of
10
+`crate-type` are relatively limited.
11
+
12
```rust,editable
13
// This crate is a library
14
#![crate_type = "lib"]
0 commit comments