Crates.io | aoc2021 |
lib.rs | aoc2021 |
version | 0.3.0 |
source | src |
created_at | 2021-12-02 01:34:45.499009 |
updated_at | 2021-12-03 18:55:27.740793 |
description | Solves Advent of Code 2021 puzzles |
homepage | |
repository | https://github.com/internet-diglett/aoc2021 |
max_upload_size | |
id | 490610 |
size | 55,488 |
Rust lib and binary for solving Advent of Code 2021 puzzles
These instructions will give you a copy of the project up and running on your local machine for development and testing purposes.
Requirements for the software and other tools to build, test and push
$ cargo build --release
$ ./target/release/aoc2021 --help
aoc2021 0.1.0
Levon Tarver <ask.levon@gmail.com>
Solves Advent of Code 2021 puzzles
USAGE:
aoc2021 [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-d, --day <day> Day of puzzle you want to solve
-f, --file <file> Plaintext file containing puzzle input. Defaults to day<N>.txt
$ time ./target/release/aoc2021 -d 1
counting the number of times a depth measurement increases
Part One: 1477
counting the number of times the sum of 3 consecutive measurements increases
Part Two: 1523
./target/release/aoc2021 -d 1 0.00s user 0.00s system 59% cpu 0.002 total
Rust is fun. Rust is fast.