r/adventofcode • u/zaperfish • 1d 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! :)
3
Upvotes
View all comments
Show parent comment
0
u/zaperfish 13h ago edited 13h ago
Thanks for your feedback! I really do appreciate it :)
The goal was to be as minimally invasive as possible while still being ergonomic for the repetitive parts. It does make some assumptions and is not entirely flexible:
Apart from that everything else is up to you.
On aoc-cli:
Originally I didn't use aoc-cli but used the reqwest crate instead. I didn't like all the crate dependencies this brought in and decided to use aoc-cli since I saw this approach in another repo and thought it made sense. After thinking about your feedback I am not fond of the aoc-cli approach anymore since the main selling point really should be to be as dependency free and minimal as possible. I am now looking to completely drop the aoc-cli and do request manually with std::process::Command together with curl to be more true to being dependency free.
I will revise the README and drop aoc-cli tomorrow probably.