Home

Awesome

Advent of Code solutions in Rust by TBali

rust v1.81 build AoC stars license

This repo contains the partial rewrite of my complete (450 ⭐) AoC solutions in PHP to Rust, plus a simple CLI runner.

Usage

# -- setup
# install Rust: https://www.rust-lang.org/tools/install
rustup update stable
cargo version
# -- lint
cargo fmt
cargo clippy
# -- doc
cargo doc --no-deps --open
# -- test
cargo test
cargo test 2023
cargo test 2023day02
cargo test cli
# in Powershell:
$env:RUST_BACKTRACE=1 ; cargo test
cargo run
cargo run -- 2023
cargo run -- 2023 2
# -- run
cargo build --release
target/release/aoc.exe
target/release/aoc.exe 2023
target/release/aoc.exe 2023 2
# -- shortcut run
./aoc.bat
./aoc.bat 2023
./aoc.bat 2023 2
./aoc.bat --help
# -- shortcut qa
./qa.bat
# -- cleanup
cargo clean

Adding a new solution