BrainiumLLC / cargo-mobile

Rust on mobile made easy!
Apache License 2.0
1.22k stars 52 forks source link

Cargo Mobile doesn't support workspaces #121

Open gianzellweger opened 1 year ago

gianzellweger commented 1 year ago

Cargo workspaces is a handy feature which allows you to have multiple subprojects in one directory. Cargo Mobile currently doesn't support it when building. Workspaces use one unified target directory. Cargo mobile always targets the /{subproject}/target directory.

neupsh commented 5 months ago

Is there a known workaround to this issue?

Cactice commented 3 weeks ago

rm -rf /{subproject}/.git ln -s target /{subproject}/target

worked I think...