https://github.com/vitberget/aoc-rust
https://github.com/vitberget/aoc-rust
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/vitberget/aoc-rust
- Owner: vitberget
- Created: 2023-02-10T22:00:08.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-17T10:22:14.000Z (over 1 year ago)
- Last Synced: 2025-01-17T11:27:49.773Z (over 1 year ago)
- Language: Rust
- Size: 521 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code - Rust
Solving [Advent of Code](https://adventofcode.com/).
Experimenting with [Rust](https://www.rust-lang.org/), hopefully learning stuff :D.
I most often solve AoC in [Clojure](https://clojure.org/) first.
## Profiling, when available
Run with envirment flag `AOC_PROFILING` set to... anything.
```sh
AOC_PROFILING=1 cargo run --bin year2024_day11
```
## Input
1. Without arguments: take file content from `puzzles/year-YYYY-dayDD.txt`
2. Without argument `-`: read from stdin
3. Without other argument: take file content from file names as argument
## Aoc Utils
The `aoc-utils` binary can download puzzles and create template solutions.
```sh
cargo run --bin aoc-utils create 2025 1
```
```sh
cargo run --bin aoc-utils download 2025 1
```