Rust fun
- Download:
cargo download 1
- Solve:
cargo solve <day>
; add--release
for the release version; add--dhat
for memory profiling - Run test
cargo test --bin <day>
; remove bin for all tests to run - Run all solutions
cargo all
- Benchmark
cargo time <day> [--all] [--store]
; store flag writes to README - Read puzzle:
cargo read <day>
- All in one:
cargo today
Day | Part 1 | Part 2 |
---|---|---|
Day 1 | ⭐ | ⭐ |
Day 2 | ⭐ | ⭐ |
Day 3 | ⭐ | ⭐ |
Day 4 | ⭐ | ⭐ |
Day | Part 1 | Part 2 |
---|---|---|
Day 1 | 101.1µs |
106.8µs |
Day 2 | 120.1µs |
279.2µs |
Day 3 | 53.0ms |
23.9ms |
Day 4 | 2.4ms |
1.3ms |
Total: 81.21ms
Template from advent-of-code-rust