Consider three C header files
Also, you have three source files.
#include "a.h" ...
#include "b.h" #include "c.h" ...
#include "a.h" #include "c.h" ...
The source files compile to
Then the object files are linked to get
lib.a, a static library.
What is the intended way to do the same thing on Rust?
I am assuming that you do it by mapping source file
x.c to crate
x. If that is the case, what is the equivalent of the header files in Rust?