cargo-merge-0.1.0 is not a library.
Visit the last successful build:
cargo-merge-0.2.2
Cargo merge
A cargo subcommand that merges your crate source code into a single file.
The initial purpose of this command is to merge your whole crate as a single source file that can be used on competitive programming platforms.
It works by expanding module imports by detecting them with regex, rewriting some "use" statements in the process.
Install
Just run the following command:
Usage
Simply call the cargo sub command inside your crate folder hierarchy (it can be any folder below the one containing your Cargo.toml file):
This will generate a merged file in target/merge/merged.rs.
Options
| Long flag | Short flag | Description |
|---|---|---|
-s |
--silence-standard-error-output |
Remove all the usages of eprint! and eprintln! macros from your code. |