r/adventofcode • u/zaperfish • 10h ago
Repo [Rust] Tiny helper for rust aoc
Hey people,
I just wanted present this tiny, dependency free, helper to solve advent of code in rust. Its built by hand.
All it does is handle input, run and time your solutions and submit your answers from the terminal.
I wanted it to be very minimal so you can decide on your project layout yourself.
$ cargo run --release --bin day01 -- --submit
2025 Day 1:
Part 1: 1 333ns
Part 2: unsolved
Submitting "1" for part 1:
*\(^o^)/* That's the correct answer!Also any feedback is welcome!
https://github.com/zaperfish/aoc-rust
Happy solving! :)
5
Upvotes
View all comments
Show parent comment
-1
u/zaperfish 3h ago edited 2h ago
Fair point. Dependency free is maybe not precisely worded. It is meant as having no crate dependencies so nothing gets added to your Cargo.lock and and your compiled day stays minimal. I will fix the wording in the README.
As for the aoc-cli's submit function: It's mostly about the workflow. If you were to use the aoc-cli's submit function you would have to run your solution, copy the answer over and then use aoc-cli's submit function. I thought having this whole process as a single step by just passing a -s flag is a little smoother and requires no copying.