https://github.com/jondolf/advent-of-code-2022
My Advent of Code 2022 solutions, this year in Rust 🦀 https://adventofcode.com/2022
https://github.com/jondolf/advent-of-code-2022
advent-of-code aoc puzzle puzzle-solution rust solutions
Last synced: 4 days ago
JSON representation
My Advent of Code 2022 solutions, this year in Rust 🦀 https://adventofcode.com/2022
- Host: GitHub
- URL: https://github.com/jondolf/advent-of-code-2022
- Owner: Jondolf
- Created: 2022-11-29T18:04:19.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T16:06:36.000Z (over 3 years ago)
- Last Synced: 2026-05-30T02:26:37.062Z (about 2 months ago)
- Topics: advent-of-code, aoc, puzzle, puzzle-solution, rust, solutions
- Language: Rust
- Homepage:
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🎄 Advent of Code 2022
Here are my solutions to the [Advent of Code 2022](https://adventofcode.com/2022), this year in Rust.
## Running the solutions
Run all solutions:
```
cargo run
```
Run just one day's solution:
```
cargo run -- --day
```
## Scaffolding new days
This project also contains a (pretty over-engineered) binary for generating everything required for the puzzles.
It creates a `mod.rs` file for the day with some template code and adds all of the necessary `mod` declarations and imports.
The binary also creates an `input.txt` file with the user's input fetched automatically.
Note that this requires the user to have the `AOC_SESSION` environment variable set to the user's session cookie (which you can get from the browser's network tab on the AoC website).
To scaffold a new day, run the command below:
```
cargo run --bin scaffold -- --day
```