Skip to content

Latest commit

 

History

History

2021

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Advent of Code 2021 - Rust

Benchmarks

Execute puzzles

To execute the solutions with the puzzle input, cd into the package folder and run the following cargo command there:

$ cd 04/giant_squid
$ cargo run --release -- -f input/puzzle_input.txt

All programs use clap to parse command line arguments. So you can display help information which might be useful since some puzzles require additional arguments:

$ cargo run -- --help

Execute tests

You can either run all tests for the entire workspace via

$ cargo test

or run the tests for a single day via

$ cargo test -p <PACKAGE>

where <PACKAGE> is the corresponding package name, e.g. dive, binary_diagnostic, giant_squid, etc.

Execute benchmarks

You can either run all benchmarks for the entire workspace via

$ cargo bench

or run the benchmarks for a single day via

$ cargo bench -p <PACKAGE>

where <PACKAGE> is the corresponding package name, e.g. dive, binary_diagnostic, giant_squid, etc.