Skip to content

wesleylether/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code - Rust

MIT License

My Rust solutions for Advent of Code.

Heavenly inspired by Tim Kurvers

Setup

Install Rust for your platform and make sure cargo is available.

Authentication

The puzzle input will automatically downloaded in the src/puzzle_inputs folder. But before that you need to first login to advent-of-code website and retrieve the session id from the cookie.

Then copy .env.example to .env and add your session id in the AOC_SESSION environment variable.

Running solutions

To run a solution provide the year and day

cargo run 2015 1

or

cargo run 2015 01

Development

To monitor code changes and re-run solutions during development, first:

cargo install cargo-watch

Then:

cargo watch -x "run 2015 01"

Tests

To run tests for utilities:

cargo test

About

The puzzle completions of advent-of-code in rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages