Tristan Guichaoua
a79ce7ad6d
refactor: extract template to its own file ( #49 )
2023-12-06 12:38:02 +01:00
Felix Spöttel
c241820c41
feat: use hint::black_box for benchmark evaluation ( #47 )
...
* this prevents cases where subsequent invocations of a solution fully unroll it, leading to deceivingly low execution times being reported.
2023-12-06 10:08:35 +01:00
Matt Clarke
df48bfe6ec
feat: add macro arms for running individual parts of a solution ( #44 )
2023-12-05 22:56:53 +01:00
Felix Spöttel
9d064019c3
refactor: move Day
struct to template
module ( #40 )
2023-12-05 22:39:20 +01:00
Felix Spöttel
3260b731be
feat: add --download
flag to scaffold ( #46 )
2023-12-05 22:35:32 +01:00
Felix Spöttel
61cc69b124
fix: cargo fmt
2023-12-01 13:49:39 +01:00
Felix Spöttel
38dc536984
feat: add read_file_part()
helper
...
closes #37
2023-12-01 13:25:07 +01:00
Felix Spöttel
a3cc3a7efe
refactor: rename main!
macro to solution!
2023-11-22 14:13:12 +01:00
Tristan Guichaoua
6d9bf346a0
feat: use checked Day type instead of integers for days ( #35 )
2023-11-22 14:10:19 +01:00
Felix Spöttel
d7af3dca9e
refactor: fix most pedantic clippy warnings
...
closes #29
Co-authored-by: Andy Pymont <andypymont@gmail.com>
2023-10-31 19:46:31 +01:00
Felix Spöttel
83e229c7df
fix: check in updated file layout
2023-10-21 21:55:03 +02:00
Felix Spöttel
1b10ee20ac
ci: enable caching for cargo ( #31 )
2023-10-21 21:22:31 +02:00
Felix Spöttel
70dac9329f
feat: implement benchmarks ( #30 )
2023-10-21 21:08:46 +02:00
Felix Spöttel
d10ec0573e
feat: add --submit <part>
option to cargo solve
( #25 )
...
* remove `--year` flag in favor of `.config/config.toml`
* cleanup option handling for `cargo solve`
2023-10-21 14:46:19 +02:00
Andy Pymont
1c8ea27eae
Make the template pass cargo clippy by resolving warnings ( #28 )
...
* Resolve clippy::uninlined_format_args warnings
* See https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
2023-02-04 23:17:04 +01:00
Felix Spöttel
0908ad602b
chore: fmt
2022-12-07 00:09:33 +01:00
Felix Spöttel
4d10812fd3
feat: download puzzle descriptions ( #21 )
...
* add support for downloading puzzle descriptions in `cargo download`
* add `cargo read` command to read puzzles in terminal
* extract `aoc_cli` module
* use `aoc-cli`'s new overwrite option to eliminate temp files
2022-12-06 18:22:40 +01:00
Felix Spöttel
b8b688f9d8
fix: respect --release
when running cargo all
2022-12-04 11:56:41 +01:00
Felix Spöttel
d0b923f727
fix: rename package to advent_of_code
( #13 )
...
`aoc` shadowed the `aoc-cli` binary which could lead to issues.
closes #12
2022-11-29 20:17:00 +01:00
Felix Spöttel
7d663f1407
fix: compatibility with aoc-cli@^0.5.0
...
closes #11
2022-11-29 14:08:49 +01:00
Felix Spöttel
ffc7cdb4ce
chore: run cargo fmt
2022-11-25 16:30:15 +01:00
Felix Spöttel
c4507b6db8
fix: update scaffold command output
2022-11-25 14:25:02 +01:00
Felix Spöttel
8daca41984
fix: clippy warning in 1.65.0
2022-11-25 13:18:24 +00:00
Felix Spöttel
132fb662de
fix: compatibility with aoc-cli^0.4.0 ( #7 )
...
Co-authored-by: Peter Anning <22272449+peteanning@users.noreply.github.com>
2022-11-06 21:23:46 +01:00
Felix Spöttel
e45e930602
feat: clearly mark template code
2022-10-29 17:25:11 +02:00
Felix Spöttel
e327f00aa8
fix: fix clippy lint
2022-10-29 17:21:54 +02:00
Felix Spöttel
aae6a8f029
chore: golf solution template
2022-10-29 17:17:42 +02:00
Felix Spöttel
ec5859083a
feat: return option from solution parts
...
this allows to print _not solved_ for solution parts that haven't been solved yet.
adjust `solve` macro to handle one solution part rather than both.
this allows for easier debugging of real input.
2022-10-29 17:04:13 +02:00
Felix Spöttel
5c84286d9e
feat: add -y
flag alias for download command
2022-10-29 14:36:26 +02:00
Felix Spöttel
1d991f7aab
docs: add common pitfalls section
2022-10-29 14:32:33 +02:00
Felix Spöttel
30670f33fb
fix: add missing line breaks to scaffold template
2022-10-24 13:05:44 +02:00
Felix Spöttel
bd97e34f66
feat: add shorthands for running solutions
2022-10-18 11:26:56 +02:00
Felix Spöttel
6613b6bfce
fix: correct file names in scaffold
2022-10-17 18:44:08 +02:00
Felix Spöttel
afa39070de
fix: better error messages in download script
2022-10-17 15:18:32 +02:00
Felix Spöttel
49123f790a
feat: implement bash scripts in rust
...
enables cross-platform support, closes #1 .
scaffold scripts adapted from code on @steventhorne's fork, thx!
2022-10-17 14:43:04 +02:00
Felix Spöttel
00407542e4
feat: add helpers module
2022-10-17 11:19:08 +02:00
Felix Spöttel
37b2027a99
fix: replace git.io links
2022-04-26 09:11:57 +02:00
Felix Spöttel
fc9f90c9c2
fix: handle ANSI escapes when counting exec. time
2021-12-31 13:05:23 +01:00
Felix Spöttel
01f0749c9c
docs: clarify timings
2021-12-30 12:00:14 +01:00
Felix Spöttel
8441cb2fde
feat: add total
timing
2021-12-29 19:46:04 +01:00
Felix Spöttel
681c03ad89
feat: use cargo --bin
instead of solutions crate
2021-12-29 19:45:58 +01:00
Felix Spöttel
4449f5bc94
initial commit
2021-12-29 14:12:01 +01:00