cargo-equip
A Cargo subcommand to bundle your code into one .rs file for competitive programming.
Example
Point Add Range Sum - Library-Cheker
lib
[]
= []
= ["algebraic"]
= []
= []
bin
[]
= { = "complib", = "/path/to/complib" }
= { = "https://github.com/qryxip/cargo-equip", = "37d4972d57be0d41d3d8edfb5db691487359cb3b" }
use ;
use Write as _;
↓
$ cargo equip --oneline mods --rustfmt --check | xsel -ib
Bundling code
Checking cargo-equip-check-output-ixtp05p7mhbiumzg v0.1.0 (/tmp/cargo-equip-check-output-ixtp05p7mhbiumzg)
Finished dev [unoptimized + debuginfo] target(s) in 0.21s
https://judge.yosupo.jp/submission/20767
License
Dual-licensed under MIT or Apache-2.0.