c2rust
c2rust copied to clipboard
Transpile `#include` as `include!()`
Currently, each generated file contains a copy of each header file it includes, so to make a change/refactor you will need to change multiple places, making changes harder than necessary. By transpiling C #include
s to Rust include!
, it will become much easier to refactor without losing the C semantics (which will probably happen by using mod
and similars).
This is a good idea.
Duplicate of #1050 ?
Duplicate of #1050 ?
This is a bit different I think.
They essentially describe the same idea, the only difference is that this one suggests using include!()
to implement it.