Skip to content

Commit ae8c5bc

Browse files
committed
Notify cargo proc-macro crate info
1 parent a464ee3 commit ae8c5bc

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/procedural-macros.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ procedural macros as functions from an AST to another AST.
1313

1414
### Crates and procedural macros
1515

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-
```
16+
All procedural macros are compiled as a crate.
17+
18+
> **Note**: When using Cargo, Procedural macro crates are defined with the
19+
> `proc-macro` key in your manfiest:
20+
>
21+
> ```toml
22+
> [lib]
23+
> proc-macro = true
24+
> ```
2325
2426
Procedural macros are always compiled with the same target as the compiler
2527
itself. For example if you execute `cargo build --target

0 commit comments

Comments
 (0)