Skip to content

Commit 37315a8

Browse files
Document dependency on build system
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
1 parent 32bc019 commit 37315a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

text/3791-crate-attr.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ bytes at the start of the file.
175175
It makes it harder for Rust developers to know whether it's idiomatic to use flags or attributes.
176176
In practice, this has not be a large drawback for `crate_name` and `crate_type`, although for lints perhaps a little more so since they were only recently stabilized in Cargo.
177177

178+
Using this feature can make code in a crate dependent on attributes provided through the build system, such that the code doesn't build if reorganized or copied to another project.
179+
178180
# Rationale and alternatives
179181
[rationale-and-alternatives]: #rationale-and-alternatives
180182

0 commit comments

Comments
 (0)