Building library from as a static library for non-Rust projects?

If using Rust library as a dependency of a Rust project, eveything is handled nicely automatically. But what if I want to use a Rust library (but with crate-type=staticlib) from in a C project?

Currently the best way I know is not to use, but check out source from git and run cargo build. Is there a simpler way? Preferably also getting source from

1 Like

It sounds like what you're getting at is using to distribute binary artefacts as well as source. I think a lot of people have asked for this in the past, but I'm not sure if anything came of it. Someone like @carols10cents may know more though.

For work I'm using git submodules and recompiling to a dynamic library (cdylib) locally. My circumstances may be a bit different to the norm though because it's a proprietary application targeting Windows... A platform which isn't very conducive to cross compilation.