3 ms·
"Pure rust" is not quite accurate given the rsx! macro DSL stuff
by airstrike 2y ago
"Pure rust" is not quite accurate given the rsx! macro DSL stuff
- jasonjmcghee 2y agosure it is. the macro is written in rust and used in rust and compiled using the rust compiler
- airstrike 2y agothe tooling might be in Rust, but now I have to write some new DSL that isn't Rust
- jkelleyrtp 2y agoThe DSL is basically just Rust structs with optional fields. We essentially use the same struct parser rust uses but with some small tweaks. You want to use a macro for this so you can do hot-reloading - doing it with native Rust is currently impractical for rapid dev.