Skip to content

Latest commit

 

History

History

2021

Advent of Code in Rust 2021

Prerequisites

  • Cargo
  • Rust
  • Christmas 2021

Building

cargo build

Running a day

cd <to correct directory in src>

Then:

cargo run < input.txt

or

echo -n "yourinput" | cargo run

or

cargo run -- bin day_01
<hey>

Running a test

The tests are from the example of the day

cargo test