Commit b337b2f
authored
Add procedural
All `manually_traced` types use this new macro, making the implementation more concise.
Procedural macros are more flexible than what we use currently and
single macro for all our manually traced code.
This is now a (semi-public) API that downstream crates can start to utilize.
Unfortunately, this increases the compile time and dependency tree.
The core crate now depends on zerogc-derive and syn (`features=["full"]`).
* [derive] Use `crate::` when deriving inside zerogc
This is the proc-macro equivelant of '$crate'
This allows us to use derive/proc-macros inside of zerogc itselfunsafe_gc_impl! macro for manual impls (#22)1 parent 98de026 commit b337b2f
File tree
11 files changed
+1328
-660
lines changed- libs/derive
- src
- src
- manually_traced
11 files changed
+1328
-660
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
Large diffs are not rendered by default.
0 commit comments