Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sergree/aoc2020
⭐ Advent of Code 2020: Мade with Rust
https://github.com/sergree/aoc2020
advent-of-code advent-of-code-2020 aoc aoc-2020 aoc2020 idiomatic rust
Last synced: about 2 months ago
JSON representation
⭐ Advent of Code 2020: Мade with Rust
- Host: GitHub
- URL: https://github.com/sergree/aoc2020
- Owner: sergree
- License: apache-2.0
- Created: 2021-04-24T16:41:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-20T15:03:27.000Z (over 2 years ago)
- Last Synced: 2024-04-20T09:07:12.396Z (8 months ago)
- Topics: advent-of-code, advent-of-code-2020, aoc, aoc-2020, aoc2020, idiomatic, rust
- Language: Rust
- Homepage:
- Size: 144 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Advent of Code 2020: Мade with Rust
When I was solving [puzzles](https://adventofcode.com/2020), my goal was to practice writing *idiomatic Rust*. My solutions do not claim to be *the fastest* or *fully production ready*. Consider this as the 2020 version of [BurntSushi's 2018 Advent of Code solutions][BurntSushi]. I tried to maintain it's style by adding my own features.
- 🧘 *Panicless* idiomatic Rust code
- ☂️ [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself): shared codebase between the two parts
- 1️⃣ Single `main.rs` per day
- 🎿 *Acceptable* speed
- 🤷 [anyhow](https://github.com/dtolnay/anyhow) error handling
- 🌞 Doesn't need NightlyThe solution runs the same way as [BurntSushi's][BurntSushi]: `cd` into it's directory and invoke the program with Cargo:
```
$ cd aoc01
$ cargo run --release < input/input.txt
```## MSRV
The minimum supported Rust version is **1.51** due to [Const Generics](https://github.com/rust-lang/rust/pull/79135).
## My Favorite Alternatives
- The fastest AoC 2020 Rust solutions: https://github.com/timvisee/advent-of-code-2020
- Production grade AoC 2020 Rust solutions: https://github.com/coriolinus/adventofcode-2020Check them out too!
[BurntSushi]: https://github.com/BurntSushi/advent-of-code