Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/tranzystorekk/aoc2019-rust

Advent of Code 2019 (Rust rendition)
https://github.com/tranzystorekk/aoc2019-rust

advent-of-code-2019 rust

Last synced: 16 days ago
JSON representation

Advent of Code 2019 (Rust rendition)

Awesome Lists containing this project

README

        

# AOC 2019 (remade in Rust, baby :sunglasses:)

## About

Selected solutions from the original [Python repo](https://github.com/tranzystorek-io/aoc2019-python),
sweetened with some 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 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 *utils* library.

This has been moved to the [aoc-utils](https://github.com/tranzystorek-io/aoc-utils) repository.