4 releases

Uses old Rust 2015

0.2.2 Dec 10, 2018
0.2.0 Dec 3, 2018
0.1.1 Dec 2, 2018
0.1.0 Dec 2, 2018

#19 in #samples

MIT license

85KB
625 lines

Advent of Code

Crates.io

Advent of Code are excellent samples for trying out Rust iterators and related features. This repository holds my solutions to the puzzles I've attempted so far. The library documentation (at docs.rs/advent) is a convenient way to browse the code.

$ cargo -q test 2017::day3  # to run a specific puzzle

running 2 tests
test y2017::day3::examples ... ok
test y2017::day3::solution ... ok

$ cargo test --release # to run all puzzles

lib.rs:

Advent of Code

advent is a collection of my solutions to the Advent of Code puzzles posted in December each year. The solutions are implemented as functions in the modules (e.g. y2018 below) and can be executed using cargo test with the appropriate scope selection

$ cargo test 2018::day1
running 2 tests
test y2018::day1::examples ... ok
test y2018::day1::solution ... ok

No runtime deps