Documentation

cargo-concat

Crates.io GitHub

This tool allows you to put all the modules you use in the executable file into one file.

Install

cargo install cargo-concat

Usage

In your Cargo project directory, you can hit the following command to generate a concatenated file.

cargo concat --bin main --output out.rs