Antoine Martin
e25bc47f8f
fix some pedantic clippy lints that make sense
...
- clippy::redundant-closure-for-method-calls
- clippy::explicit-iter-loop
2020-12-17 01:59:01 +01:00
Antoine Martin
8d11c817f3
bench: split to separate package
...
Unfortunately cargo doesn't allow optional dev dependencies (see
rust-lang/cargo#1596 ) so this is the workaround.
Previously, running `cargo test` triggered the build of all dev
dependencies, including criterion, which in turn pulls in a lot of
stuff. Running tests should be faster, hence this change.
2020-12-15 12:16:33 +01:00
Antoine Martin
60b5398737
2018: switch to anyhow
2020-12-14 20:35:10 +01:00
Antoine Martin
2b4173e80e
bench: use more samples by default
2019-12-08 02:45:34 +01:00
Antoine Martin
7eca1339d7
add benches for 2015 and 2018
2019-12-07 03:02:35 +01:00
Antoine Martin
4bff689da0
aoc: stop printing inside run functions
...
This will make benching implementations easier
2019-12-06 19:06:49 +01:00
Antoine Martin
31d61e0e7e
2018: day01: group up tests
2019-12-05 00:03:26 +01:00
Antoine Martin
5bee7a0ce7
aoc: refactor main() function
2019-12-02 17:01:10 +01:00
Antoine Martin
9903508129
don't panic in main
2019-12-02 11:48:24 +01:00
Antoine Martin
64410f0042
use aoc crate for common stuff
2019-12-01 22:22:12 +01:00
Antoine Martin
907e883d48
fix err! macro
2019-12-01 21:25:43 +01:00
Antoine Martin
f743d60f85
2018: day05: fix clippy warnings
2019-11-25 19:07:26 +01:00
Antoine Martin
a5caa00dbf
2018: main: display correct line numbers
2019-11-25 19:05:08 +01:00
Antoine Martin
9278a5472a
2018: day04: part 1
2019-11-25 19:04:48 +01:00
Antoine Martin
cef2fba255
2018: day05: part 2
2019-11-22 17:45:58 +01:00
Antoine Martin
af39de85b0
2018: day05: remove unneeded Result
2019-11-22 17:30:47 +01:00
Antoine Martin
7ca4504295
2018: day05: move logic to collapse fn
2019-11-22 17:26:02 +01:00
Antoine Martin
d17e26540f
2018: day05: part 1
2019-11-22 17:14:49 +01:00
Antoine Martin
a6ff14b260
2018: day03: implement FromStr instead of fn parse
2019-11-18 14:27:45 +01:00
Antoine Martin
8de2538d0e
2018: fix some warnings
2019-11-18 13:56:50 +01:00
Antoine Martin
f23ec6ce90
2018: day03: simplify error
2019-11-17 22:00:05 +01:00
Antoine Martin
2274074cdd
2018: day03: part2
2019-11-15 17:25:40 +01:00
Antoine Martin
64d8e7b779
2018: day03: parse claim id
2019-11-15 16:41:38 +01:00
Antoine Martin
b5aca56ebb
2018: day03: use struct instead of tuple
2019-11-15 16:31:45 +01:00
Antoine Martin
cf17d2779c
2018: day03: part 1
2019-11-15 16:11:58 +01:00
Antoine Martin
0968951383
2018: day02: part 2
2019-11-15 15:18:36 +01:00
Antoine Martin
b4c1f36767
move everything to single crate
2019-11-15 00:14:07 +01:00