I want to build a Rust library that exposes a C API, and then write some tests in C for that API. Ideally
cargo test would build and run those tests.
It looks like the
gcc crate is only for building C libraries that are linked into Rust programs. I guess I could have a Rust program that links in a C library that links in a Rust library. Then the top-level Rust program would just call one function in the C library, to run all the tests.
Is there some simpler way?