Solutions to Advent of Code 2025 implemented in Rust.
Online solutions runner: https://aoc.cadi.ac/
Follow Rust installation instructions.
The project is split into separate binaries within one cargo project.
You can run individual solutions with
$ cargo run -- --day 1 --year 2025or using custom inputs with
$ cargo run -- --day 1 --year 2025 --file inputs/2025/day01.txtAll solutions of the current year can be run using defaults inputs from inputs/ directory with
$ cargo runSingle day's tests can be run with
$ cargo test --workspace -- y2025::day01::testsor all tests with
$ cargo test --workspacewithin the project's root directory.
You can run all benchmarks within aoc-solver directory with
$ cargo benchIndividual day benchmarks can be run using
cargo bench -- day-1 --exactThis repository now also ships with a small web tool, https://aoc.cadi.ac/ to run the solutions online.
To get started with local web development environment start by adding wasm32-unknown-unknown toolchain:
$ rustup target add wasm32-unknown-unknownThen install trunk
$ cargo install --locked trunkand within the aoc-web directory start the local development server with
$ trunk serveThis should start the server at localhost:8080.