We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 385970f commit 215a0d8Copy full SHA for 215a0d8
src/doc/unstable-book/src/compiler-flags/crate-attr.md
@@ -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