cargo-concat
This tool allows you to put all the modules you use in the executable file into one file.
Install
Usage
In your Cargo project directory, you can hit the following command to generate a concatenated file.
cargo concat --bin main --output out.rs