Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tranzystorekk/aoc2020-rust
Advent of Code 2020 in Rust
https://github.com/tranzystorekk/aoc2020-rust
advent-of-code-2020 rust
Last synced: 21 days ago
JSON representation
Advent of Code 2020 in Rust
- Host: GitHub
- URL: https://github.com/tranzystorekk/aoc2020-rust
- Owner: tranzystorekk
- Created: 2020-11-30T11:25:04.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-19T02:14:51.000Z (almost 3 years ago)
- Last Synced: 2023-10-28T06:24:41.751Z (about 1 year ago)
- Topics: advent-of-code-2020, rust
- Language: Rust
- Homepage:
- Size: 159 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AOC 2020 Electric Rustaloo :crab:
## About
My main solution repo for Advent of Code 2020. Expect some dangerously fun Rust action!
This is mostly my attempt at polishing my Rust skills
in a controlled environment.## Usage
I assume you know some Rust basics,
like how to get it on your computing machine (`rustup` recommended!) and how to use `cargo`.If not, go to , or check out help for `rustup` at your *nix distribution.
The solutions are all single rust programs in the [src/days/](src/days) directory.
All of them have their own binary configuration in the [Cargo.toml](Cargo.toml) file.To run a specific solution, execute the following:
`cargo run --bin []`
## aoc-utils crate
Although Rust tries to combine succinctness and efficiency,
it is in many aspects not as expressive as, say, Python.For AOC solutions, one of the imperative things for me is to be able to read input from various sources.
That includes regular text files and STDIN, for quick dirty runs with data manually input from the keyboard.To be able to do that without writing lots of boilerplate code in each solution,
I have devised the [aoc-utils](https://github.com/tranzystorek-io/aoc-utils) crate.