A long read, but a good read. Covers the use of syn
and reflect
in the Rust ecosystem,
what those tools are in reaction to, and the limits of that pattern. Proposes a compile-time
reflection system with low- and mid-level APIs that would (in theory) allow Rust to get away
from the widespread peer dependency on serde
.Linked terms include:-
- SFINAE
- dtolnay's
reflect
crate - dtolnay's
syn
crate - bevy's
bevy_reflect
crate - C's P99 macro library
- the Rust
offset_of!
macro PR