[][src]Crate aoc_helper

AOC Helper documentation

AOC Helper is a crate to make solving and sharing aoc problems in rust easier. It is inspired by cargo-aoc. cargo-aoc is a binary that will also take care of compilation, while this crate is a library you can import and use in your code. This aims to make it easier to share and debug other people's code, and to perhaps be easier to set up.

aoc-helper is a very simple crate right now, and all the functionality is in the Helper struct.

Usage

To get started, add aoc-helper to the dependencies section in your Cargo.toml:

[dependencies]
cargo-aoc = "0.1.0"

You also need to provide a session ID for aoc-helper to be able to download your input files. The session ID is stored in a cookie called session in your browser on the aoc website if you're logged in. You can provide the session ID either through an environment variable with the name AOC_SESSION_ID or through the session_id function on Helper.

Structs

Helper

The Helper struct stores all necessary information for an aoc day.