Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 1.24 KB

File metadata and controls

25 lines (22 loc) · 1.24 KB

Comlib

Rust

Library for participating in programming competitions in Rust. The goal is to include utilities for most commonly needed scenarios in programming competitions, such as input reading, as well as to include many common algorithms implemented in a generic way.

The documentation is available online. Remember to choose the crate you are interested from the left bar.

Usage

Often in programming competitions it is not possible to submit multiple files, let along to depend on external crates. The easiest way to use this library is to include all of the relevant parts as dependencies:

[dependencies]
comlib-io = { git = "https://github.com/henkkuli/comlib" }
comlib-math = { git = "https://github.com/henkkuli/comlib" }
comlib-range = { git = "https://github.com/henkkuli/comlib" }
comlib-string = { git = "https://github.com/henkkuli/comlib" }

and then use cargo equip to compile your code into a single file:

cargo equip --exclude rand --resolve-cfgs --remove docs --remove comments --rustfmt --minify libs --check -o submission.rs --src src/main.rs