Skip to content

henkkuli/comlib

Repository files navigation

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

About

Competitive programming library for Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages