This project is based on rust-bundler
Creates a single-source-file version of a Cargo package. It's designed for Competitive Programming like Codeforces.
extern crate my_lib;
in main.rs
with the contents of lib.rs
.mod my_mod;
declarations into mod my_mod { ... }
blocks.PATH
, i.e. dnf install rustfmt
. I'll consider bundle rustfmt
in my code later.[dependencies]
in Cargo.toml
Endle's codeforces template is co-evoloved with rust-bundler-cp, and is considered as the example of it.
Install:
$ cargo install rust_bundler_cp
Run:
$ rust_bundler_cp --input path/to/project >output.rs
$ rust_bundler_cp --input path/to/project --binary a