https://github.com/coriolinus/adventofcode-2020
Advent of Code 2020
https://github.com/coriolinus/adventofcode-2020
Last synced: over 1 year ago
JSON representation
Advent of Code 2020
- Host: GitHub
- URL: https://github.com/coriolinus/adventofcode-2020
- Owner: coriolinus
- Created: 2020-11-27T18:29:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-21T23:21:04.000Z (about 2 years ago)
- Last Synced: 2025-03-28T01:53:40.779Z (over 1 year ago)
- Language: Rust
- Size: 390 KB
- Stars: 36
- Watchers: 5
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code 2020
Solutions to the exercises at .
This year I'm playing with minimizing scaffolding by generating each day as a subproject
within a shared workspace.
## Initial setup
Log in to the AoC site with whatever method you prefer. Then use the browser's dev tools to
inspect the cookies. You want the one called `session`. Configure this tool with it,
so it can download the inputs for you.
```bash
cargo run -- config set --session YOUR_SESSION_KEY
```
## Per-day setup
```bash
cargo run -- init
```
This will create a new sub-crate and add it to the workspace, as well as downloading the problem's
input. Inputs are saved to a canonical directory. The sub-crate will be named for the day in question,
so it can then be run like
```bash
cargo run -p day01 -- --part2
```