This tool allows you to put all the modules you use in the executable file into one file.
cargo install cargo-concat
In your Cargo project directory, you can hit the following command to generate a concatenated file.
cargo concat --bin main --output out.rs
- Support crates with zero dependency
- Support
use crate::...
- Support
extern crate ...
- Support crates with external dependencies