advent-of-code/2023/rust
Daniel Flanagan 397a95f2dc
Pause to go touch grass
2023-12-09 15:00:30 -06:00
..
src Pause to go touch grass 2023-12-09 15:00:30 -06:00
.envrc Maybe ready for 2023? 2023-11-28 23:36:58 -06:00
.gitignore Maybe ready for 2023? 2023-11-28 23:36:58 -06:00
Cargo.lock Day 2 2023-12-02 15:07:19 -06:00
Cargo.toml Day 2 2023-12-02 15:07:19 -06:00
flake.lock Maybe ready for 2023? 2023-11-28 23:36:58 -06:00
flake.nix Maybe ready for 2023? 2023-11-28 23:36:58 -06:00
readme.md Maybe ready for 2023? 2023-11-28 23:36:58 -06:00

readme.md

Rust Advent of Code 2023 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 file(s) 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