Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bombsimon/advent-of-code-2024

🎄 Advent of Code 2024
https://github.com/bombsimon/advent-of-code-2024

advent-of-code advent-of-code-2024 advent-of-code-2024-rust aoc aoc-2024 aoc-2024-in-rust

Last synced: 12 days ago
JSON representation

🎄 Advent of Code 2024

Awesome Lists containing this project

README

        

# Advent of Code 2023

Not much changing here, [Advent of Code](https://adventofcode.com) 2024!
Sticking to Rust this year as well.

## Input

As per [the official FAQ][faq] and a lot of [discussions on Reddit][reddit] I'm
not committing any input data this year. So to run this code you'll have to
download the input first.

## Test

```sh
# Test all days so far
› cargo test
```

## Execute

```sh
# Run a specific day
› cargo run
```

## Setup new day

This is very specific for this repository, but the script [`new-day`](./new-day)
will check the `solutions` module to see how many days have been solved and then
scaffold an empty day and update the match arms to include this.

If the environment variable `AOC_TOKEN` is set to a valid session cookie value
the input for that day will be downloaded as well.

[faq]: https://adventofcode.com/about#faq_copying
[reddit]: https://www.reddit.com/r/adventofcode/wiki/troubleshooting/no_asking_for_inputs