when doing a cargo bundle --release, it gives an error that it failed to copy binary /path/to/project/target/release/app.
That is because target-dir in the config.toml file is set to a different folder e.g. /tmp/rust so the correct path would be /tmp/rust/target/release/app
Additionally it should create the bundle directory in /tmp/rust/target/release/bundle
when doing a
cargo bundle --release
, it gives an error that it failed to copy binary/path/to/project/target/release/app
. That is becausetarget-dir
in theconfig.toml
file is set to a different folder e.g./tmp/rust
so the correct path would be/tmp/rust/target/release/app
Additionally it should create the bundle directory in/tmp/rust/target/release/bundle