Open dantho opened 3 years ago
AOC_YEAR
and AOC_SESSION
environment variables set.
After this you can delete build.rs
.src/solutions/day$i.rs
.cargo run -- init <day>
to download your input.cargo run -- run <day> [--part <part>] [--extra arg1 arg2 arg3] [--input path/to/input]
In case you don't know, the part in []
is optional. Skipping --part
will run both part 1 and part 2. Skipping --extra
will give an empty Vec<T>
of extra args. Skipping --input
will look for the download input. Do note that input is not downloaded automatically and you need to run step 3.I hope that fixes your doubt.
Thanks. That's helpful.
Perhaps I'm a newbie, but how do you build / use this template?
Your Readme is not much help to me. :(
I've stumbled around with cargo build and have populated the src directory with empty solutions, but I don't know what to do next, or how to use the .ENV file.