Skip to content

Commit 180cf1b

Browse files
committed
Fixes #890
1 parent 1788c74 commit 180cf1b

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 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+
712
```rust,editable
813
// This crate is a library
914
#![crate_type = "lib"]

0 commit comments

Comments
 (0)