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
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.
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.