Packaging a sibling directory with a crate

I have a repository that's structured like this.


The build script runs make in ../native, so how can I tell Cargo that native also needs to be included in the package?

There's no way to do that for a crate published to You'll have to move the files into the crate directory (symlink or git submodule will work) or add it as a dependent crate.

See Using C libraries in Rust: make a sys crate

1 Like

Thanks, submodules look like the way to go.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.