4 ms·
> I looked at Zig and it indeed uses libclang to parse C. I don't know about Rust's macro system but it would be somewhat surprising if it can invoke external t
by steveklabnik 9y ago
> I looked at Zig and it indeed uses libclang to parse C. I don't know about Rust's macro system but it would be somewhat surprising if it can invoke external tools or run C++ code at compile time.
Bindgen is often invoked in a "build script", which Cargo runs before building your project. So not exactly, but basically.