Compare commits

..

2 commits

Author SHA1 Message Date
Joshua Smallwood
3d737fbbb6 chore: add packages 2025-11-29 22:33:59 -06:00
Joshua Smallwood
0b2a217bb5 chore: update wordings/config 2025-11-29 22:33:48 -06:00
6 changed files with 104 additions and 1 deletions

13
.cargo/config.toml Normal file
View file

@ -0,0 +1,13 @@
[alias]
today = "run --quiet --release --features today -- today"
scaffold = "run --quiet --release -- scaffold"
download = "run --quiet --release -- download"
read = "run --quiet --release -- read"
solve = "run --quiet --release -- solve"
all = "run --quiet --release -- all"
time = "run --quiet --release -- time"
[env]
AOC_YEAR = "2025"

31
.gitignore vendored Normal file
View file

@ -0,0 +1,31 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/
# These are backup files generated by rustfmt
**/*.rs.bk
# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
# Added by cargo
/target
# Advent of Code
# @see https://old.reddit.com/r/adventofcode/comments/k99rod/sharing_input_data_were_we_requested_not_to/gf2ukkf/?context=3
data/inputs/*
!data/inputs/.keep
data/puzzles/*
!data/puzzles/.keep
# Dhat
dhat-heap.json
# Benchmarks
data/timings.json

55
Cargo.lock generated
View file

@ -23,10 +23,21 @@ version = "0.12.0"
dependencies = [ dependencies = [
"chrono", "chrono",
"dhat", "dhat",
"itertools",
"pico-args", "pico-args",
"regex",
"tinyjson", "tinyjson",
] ]
[[package]]
name = "aho-corasick"
version = "1.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
dependencies = [
"memchr",
]
[[package]] [[package]]
name = "android-tzdata" name = "android-tzdata"
version = "0.1.1" version = "0.1.1"
@ -126,6 +137,12 @@ dependencies = [
"thousands", "thousands",
] ]
[[package]]
name = "either"
version = "1.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
[[package]] [[package]]
name = "gimli" name = "gimli"
version = "0.28.1" version = "0.28.1"
@ -155,6 +172,15 @@ dependencies = [
"cc", "cc",
] ]
[[package]]
name = "itertools"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
dependencies = [
"either",
]
[[package]] [[package]]
name = "itoa" name = "itoa"
version = "1.0.9" version = "1.0.9"
@ -303,6 +329,35 @@ dependencies = [
"bitflags", "bitflags",
] ]
[[package]]
name = "regex"
version = "1.12.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "843bc0191f75f3e22651ae5f1e72939ab2f72a4bc30fa80a066bd66edefc24d4"
dependencies = [
"aho-corasick",
"memchr",
"regex-automata",
"regex-syntax",
]
[[package]]
name = "regex-automata"
version = "0.4.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c"
dependencies = [
"aho-corasick",
"memchr",
"regex-syntax",
]
[[package]]
name = "regex-syntax"
version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58"
[[package]] [[package]]
name = "rustc-demangle" name = "rustc-demangle"
version = "0.1.23" version = "0.1.23"

View file

@ -28,3 +28,6 @@ pico-args = "0.5.0"
tinyjson = "2.5.1" tinyjson = "2.5.1"
# Solution dependencies # Solution dependencies
itertools = "0.14.0"
regex = "1.12.2"

View file

@ -1,6 +1,6 @@
<img src="./.assets/christmas_ferris.png" width="164"> <img src="./.assets/christmas_ferris.png" width="164">
# 🎄 Advent of Code {year} # 🎄 Advent of Code 2025
Solutions for [Advent of Code](https://adventofcode.com/) in [Rust](https://www.rust-lang.org/). Solutions for [Advent of Code](https://adventofcode.com/) in [Rust](https://www.rust-lang.org/).

View file

@ -9,6 +9,7 @@ pkgs.mkShell {
buildInputs = [ buildInputs = [
pkgs.clippy pkgs.clippy
pkgs.rustfmt pkgs.rustfmt
pkgs.aoc-cli
]; ];
} }