advent-of-code/2024/rust
2024-12-03 09:46:16 -06:00
..
src Day 3 done 2024-12-03 09:46:16 -06:00
.envrc WIP 2024-11-30 14:30:42 -06:00
.gitignore WIP 2024-11-30 14:30:42 -06:00
Cargo.lock WIP 2024-11-30 14:30:42 -06:00
Cargo.toml Cleanup 2024-12-02 10:03:03 -06:00
flake.lock WIP 2024-11-30 14:30:42 -06:00
flake.nix WIP 2024-11-30 14:30:42 -06:00
readme.md WIP 2024-11-30 14:30:42 -06:00

Rust Advent of Code 2024 Solutions

Competing

I compete very lightly. I use my at script like at 2022-12-02 && ../ fetch-input.sh 2 to fetch input as soon as it's available and I use watchexec -e rs 'clear; cargo test --bin day2 && cargo run --bin day2' to run my code with tests as I edit them.

Running

Debug

cargo run --bin day1

Tests

cargo test --bin day1

Release Mode

For speeeeeed!

cargo build --release --bin day1
time ./target/release/day1

Everything

You can use this fish script to build all binaries in release mode and run/ time them all:

cargo build --release --bins
time for f in (fd 'day.' target/release/ --type executable --max-depth 1); echo $f; time $f; end