Skip to content

Commit 215a0d8

Browse files
committed
Document -Z crate-attr
1 parent 385970f commit 215a0d8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# `crate-attr`
2+
3+
The tracking issue for this feature is: [#138287](https://github.com/rust-lang/rust/issues/138287).
4+
5+
------------------------
6+
7+
The `-Z crate-attr` flag allows you to inject attributes into the crate root.
8+
For example, `-Z crate-attr=crate_name="test"` acts as if `#![crate_name="test"]` were present before the first source line of the crate root.

0 commit comments

Comments
 (0)