Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 454 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 454 Bytes

libaoc

Usage

To use this library, the environment variable CURL_AOC_SESSION must be set to your session id. This can be done by using a .env file and the rust crate dotenv.

Example

use libaoc::{Aoc, Day, DayNumber};

fn main() {
    let mut aoc = Aoc<2021>::new();

    aoc.add_day(Day::new(DayNumber::One, |input| {
        println!("{}", input);
    }));

    aoc.run_days_all();
}