Skip to content

Commit

Permalink
2021 all in Rust 🐌🐟󠁳󠁣󠁴󠁿
Browse files Browse the repository at this point in the history
  • Loading branch information
rene-d committed Jan 11, 2025
1 parent 9651982 commit 9ebed63
Show file tree
Hide file tree
Showing 10 changed files with 821 additions and 164 deletions.
5 changes: 4 additions & 1 deletion .justfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ make:
cargo build --manifest-path aoc/Cargo.toml --release --quiet
@for year in 20* ; do echo "cargo build $year" ; cargo build --manifest-path $year/Cargo.toml --release --quiet ; done

timings *ARGS:
./scripts/timings.py {{ ARGS }}

run-all *ARGS:
tmux new-session -d -s aoc
for year in 20* ; do tmux new-window -t aoc:$year "aoc run $year {{ ARGS }}" ; done
for year in 20* ; do tmux new-window -t aoc:$year "./scripts/runall.py $year {{ ARGS }}" ; done
tmux kill-window -t aoc:0
tmux list-windows -t aoc

Expand Down
1 change: 0 additions & 1 deletion 2021/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# http://adventofcode.com/2021
[workspace]
members = ["day*"]
exclude = ["day18"]
resolver = "2"
6 changes: 3 additions & 3 deletions 2021/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

![AoC2021](https://img.shields.io/badge/Advent_of_Code-2021-8A2BE2)
![Stars: 50](https://img.shields.io/badge/Stars-50⭐-blue)
![Rust: 24](https://img.shields.io/badge/Rust-24-cyan?logo=Rust)
![Python: 12](https://img.shields.io/badge/Python-12-cyan?logo=Python)
![Rust: 25](https://img.shields.io/badge/Rust-25-cyan?logo=Rust)
![Python: 13](https://img.shields.io/badge/Python-13-cyan?logo=Python)

## 2021 ([Calendar](https://adventofcode.com/2021)) ([Solutions](../2021/)) : 50⭐

Expand All @@ -26,7 +26,7 @@ Puzzle | Stars
[Day 15: Chiton](https://adventofcode.com/2021/day/15) | ⭐⭐ | [![Rust](../scripts/assets/rust.png)](../2021/day15/day15.rs)
[Day 16: Packet Decoder](https://adventofcode.com/2021/day/16) | ⭐⭐ | [![Rust](../scripts/assets/rust.png)](../2021/day16/day16.rs) [![Python](../scripts/assets/python.png)](../2021/day16/day16.py)
[Day 17: Trick Shot](https://adventofcode.com/2021/day/17) | ⭐⭐ | [![Rust](../scripts/assets/rust.png)](../2021/day17/day17.rs)
[Day 18: Snailfish](https://adventofcode.com/2021/day/18) | ⭐⭐ | [![Python](../scripts/assets/python.png)](../2021/day18/day18.py)
[Day 18: Snailfish](https://adventofcode.com/2021/day/18) | ⭐⭐ | [![Rust](../scripts/assets/rust.png)](../2021/day18/day18.rs) [![Python](../scripts/assets/python.png)](../2021/day18/day18_eval.py) [![Python](../scripts/assets/python.png)](../2021/day18/day18.py)
[Day 19: Beacon Scanner](https://adventofcode.com/2021/day/19) | ⭐⭐ | [![Rust](../scripts/assets/rust.png)](../2021/day19/day19.rs)
[Day 20: Trench Map](https://adventofcode.com/2021/day/20) | ⭐⭐ | [![Rust](../scripts/assets/rust.png)](../2021/day20/day20.rs)
[Day 21: Dirac Dice](https://adventofcode.com/2021/day/21) | ⭐⭐ | [![Rust](../scripts/assets/rust.png)](../2021/day21/day21.rs)
Expand Down
12 changes: 12 additions & 0 deletions 2021/day18/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[package]
name = "day18"
version = "0.1.0"
edition = "2021"

[dependencies]
aoc = { path = "../../aoc" }
itertools = "0.14.0"

[[bin]]
name = "day18"
path = "day18.rs"
Loading

0 comments on commit 9ebed63

Please sign in to comment.