Skip to content

Latest commit

 

History

History

rust-v2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Pipeline status

My solutions for Advent of Code.

Structure

There is a workspace for every year, and there are workspaces in the lib directory with shared functionality. The workspaces for the specific years all have a separate binary for every day. All workspaces are prefixed with rdcl_ to prevent naming collisions.

Usage

# run the solution for a specific day
cargo run --package rdcl_aoc2022 --bin rdcl_aoc2022_day01

# run all tests for a specific year
cargo test --package rdcl_aoc2022

# run all tests for a specific day
cargo test --package rdcl_aoc2022 --bin rdcl_aoc2022_day01

To reduce the verbosity in these commands, there is also a helper script available.

# run the solution for a specific day
cargo run $(scripts/cargo-opts 2022 01)

# or using shorthand
cargo run $(scripts/cargo-opts 22 1)

# run all tests for a specific year
cargo test $(scripts/cargo-opts 22)

# run all tests for a specific day
cargo test $(scripts/cargo-opts 22 1)