Skip to content

Latest commit

 

History

History

rust

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Advent of Code: Rust

2024 Solutions
2023 Solutions
2022 Solutions

/rust/2022/src/bin

These solutions are merged in from old repos when I was learning Rust, view at your own caution. I plan on rewriting them all.

Runner

Usage: aoc [OPTIONS] --year <YEAR> --day <DAY>

Options:
  -y, --year <YEAR>  Year of the puzzle to select
  -d, --day <DAY>    Day of the puzzle to select
  -p, --part <PART>  Part of the puzzle to select (omit to run all parts)
  -r, --run          Run the selected puzzle (default if no other options are provided)
      --release      Run in release mode
  -t, --test         Run tests for the selected puzzle
  -i, --input        Print the selected puzzle input
  -n, --new          Start new puzzle from template
      --no-cache     Force redownloading the input and overwrite the cached file
  -o, --open         Open the selected puzzle page in browser
  -h, --help         Print help
  -V, --version      Print version

Note

The runner expects the environment variable AOC_SESSION to be set in order to download your input. See wimglenn/advent-of-code-wim#1 for more information.

Automation Compliance

All automated functionality impacting the Advent of Code servers follows the automation guidelines, see lib.rs in aoc_core for implementation details.

  • Input files are cached to a local directory and ignored by source control
  • The request user agent is set to github.com/ndunnett/aoc/rust
  • Outbound calls are limited to 5 requests per 15 minutes