- Notifications
You must be signed in to change notification settings - Fork0
Learning Rust with Advent of Code 2023
License
Cadiac/adventofcode
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Solutions toAdvent of Code 2024 implemented inRust.
Online solutions runner:https://aoc.cadi.ac/
FollowRust installation instructions.
The project is split into separate binaries within one cargo project.
You can run individual solutions with
$ cargo run -- --day 1 --year 2024
or using custom inputs with
$ cargo run -- --day 1 --year 2024 --file inputs/2024/day01.txt
All solutions of the current year can be run using defaults inputs frominputs/
directory with
$ cargo run
Single day's tests can be run with
$ cargotest --workspace -- y2024::day01::tests
or all tests with
$ cargotest --workspace
within the project's root directory.
You can run all benchmarks withinaoc-solver
directory with
$ cargo bench
Individual day benchmarks can be run using
cargo bench -- day-1 --exact
This 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 addingwasm32-unknown-unknown
toolchain:
$ rustup target add wasm32-unknown-unknown
Then install trunk
$ cargo install --locked trunk
and within theaoc-web
directory start the local development server with
$ trunk serve
This should start the server atlocalhost:8080
.
❄️Day 01❄️Day 02❄️Day 03❄️Day 04❄️Day 05❄️Day 06❄️Day 07❄️Day 08❄️Day 09❄️Day 10❄️Day 11❄️Day 12❄️Day 13❄️Day 14❄️Day 15❄️Day 16❄️Day 17❄️Day 18❄️Day 19❄️Day 20❄️Day 21❄️Day 22❄️Day 23❄️Day 24❄️Day 25
About
Learning Rust with Advent of Code 2023
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.