Skip to content

Commit a3abbbe

Browse files
committed
document that this may interact with custom inner attributes
1 parent 4c1b2ba commit a3abbbe

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
@@ -179,3 +179,5 @@ In the author's opinion, having source injected via this mechanism does not make
179179
This proposal would make it easier to use external tools with [`#![register_tool]`][`register-tool`], since they could be configured for a whole workspace at once instead of individually; and could be configured without modifying the source code.
180180

181181
I would like to add an `#![edition = ...]` attribute and make `--edition` an alias for `--crate-attr=edition`. At that point the interaction between crate-attr and macros becomes more complicated. But right now there is no interaction because `--edition` must always be a flag.
182+
183+
We may want to allow [procedural macros at the crate root](https://github.com/rust-lang/rust/issues/54726). At that point we have to decide whether those macros can see `--crate-attr`. I *think* this should not be an issue because the attributes are appended, not prepended, but it needs more research.

0 commit comments

Comments
 (0)