4 releases (breaking)

0.4.0 Dec 30, 2019
0.3.0 Dec 29, 2019
0.2.0 Dec 29, 2019
0.1.0 Nov 1, 2019

#5 in #at-coder

30 downloads per month

MIT/Apache

35KB
776 lines

kunai

A competitive programming tool for Rust.

Installing from source

cargo install --path . --locked

Usage

Unify code

Below command outputs a unified code of src/bin/<binname>.rs.

kunai unify <binname>

For AtCoder(Rust 1.15.1)

kunai unify --no-eprint --rust2015 <binname>

To use your snippet crates, write dependencies in Cargo.toml like below.

[dependencies]
my_snippets = { path = "/path/to/my_snippets" }

Download testcases (AtCoder)

Below command stores sample testcases in /path-to-cache_dir/kunai/atcoder/contest_name/problem_name/sample_id.{in,out}

kunai download <problem_url>

Login (AtCoder)

kunai atcoder login

Test (AtCoder)

After downloading testcases, below command tests sample testcases.

kunai test atcoder/<contest-name>/<problem-name> <binname>

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~78MB
~1.5M SLoC