I work in embedded devices, and my team uses C/C++ exclusively along with CMake to manage dependencies and build executables/libraries. Our normal development flow is to use CMake to build our code and install the generated executables/libraries into a directory on our hardware so that our intermediate build files/code are separate from our executables/libraries since the latter are what's actually deployed to the hardware.
I'm trying to use Rust for development, but it seems like Cargo doesn't quite have the same "install" functionality as CMake in that I can separate the Rust build files from the final binary. It seems like Rust mixes the incremental build files with the final binaries.
Is there a way to specify to Cargo/
rustc to "install" the final binaries similar to CMake's install functionality?