We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a464ee3 commit ae8c5bcCopy full SHA for ae8c5bc
src/procedural-macros.md
@@ -13,13 +13,15 @@ procedural macros as functions from an AST to another AST.
13
14
### Crates and procedural macros
15
16
-All procedural macros are compiled as a crate. Procedural macro crates
17
-are defined with Cargo via the `proc-macro` key in your manfiest:
18
-
19
-```toml
20
-[lib]
21
-proc-macro = true
22
-```
+All procedural macros are compiled as a crate.
+
+> **Note**: When using Cargo, Procedural macro crates are defined with the
+> `proc-macro` key in your manfiest:
+>
+> ```toml
+> [lib]
23
+> proc-macro = true
24
+> ```
25
26
Procedural macros are always compiled with the same target as the compiler
27
itself. For example if you execute `cargo build --target
0 commit comments