I have a project that consist in two crates in a workspace, one of them crate-sys
generates some bindings. The other, crate
consumes that crate-sys
and builds a proper rust API on top of it.
On the toplevel git project (workspace), I have configured a gitsubmole that downloads the original code to build the bindings (for crate-sys
). It downloads the code to a vendor
folder inside the crate-sys
crate.
[Workspace]
- crate-sys
- vendor
- crate
Now the problem comes on:
How to publish crate-sys
to crates.io so it will download the vendor
code as well? Since the submodule information comes from the workspace git root not the crate itself?