mirror of
https://github.com/cupcakearmy/advent-of-code.git
synced 2024-12-21 15:46:28 +00:00
Advent Of Code
_templates/riddle/new | ||
.vscode | ||
2019 | ||
2020 | ||
2021 | ||
2022 | ||
.gitignore | ||
bun.lockb | ||
Cargo.lock | ||
Cargo.toml | ||
package.json | ||
poetry.lock | ||
pyproject.toml | ||
README.md | ||
rust-toolchain.toml |
Advent Of Code
Getting started
New "days" are generated with hygen
. This will bootstrap code for python and rust. See details about the specifica languages below
# First time setup
bun i
# Generate
bun run gen --year 2022 --day 1
Python
Rust
Run a single day:
cargo run --bin 2022-01
Bench a day:
cargo bench --bin 2022-01
Bench all days:
cargo bench
The benchmark is the built in Rust one. This is the reason for the nightly version.