Open HKalbasi opened 9 months ago
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.
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 Rustinclude!
, it will become much easier to refactor without losing the C semantics (which will probably happen by usingmod
and similars).