File tree Expand file tree Collapse file tree 4 files changed +26
-25
lines changed Expand file tree Collapse file tree 4 files changed +26
-25
lines changed Original file line number Diff line number Diff line change 1313 strategy :
1414 fail-fast : false
1515 matrix :
16- all-features : [ false, true ]
16+ all-features : [ false ]
1717 runs-on : ubuntu-latest
1818 steps :
1919 - name : Checkout code
6565 toolchain : [ 1.74.1, stable ]
6666 os : [ ubuntu ]
6767 ignore-lock : [ false ]
68- all-features : [ true ]
68+ all-features : [ false ]
6969 include :
7070 - experimental : false
7171 runs-on : ${{ matrix.os }}-latest
Original file line number Diff line number Diff line change @@ -4,10 +4,6 @@ version = "0.1.0"
44edition = " 2021"
55rust-version = " 1.74.1"
66
7- [features ]
8- slow = []
9- utils = []
10-
117[dependencies ]
128aocf = " 0.1.21"
139anyhow = " 1.0.93"
Original file line number Diff line number Diff line change @@ -4,36 +4,42 @@ My solutions to the Advent of Code 2024 puzzles in Rust 🦀
44
55## Requirements
66
7- * [ Rust] ( https://www.rust-lang.org/ ) 1.70.0 or later
7+ * [ Rust] ( https://www.rust-lang.org/ ) 1.74.1 or later
8+ * [ aocf] ( https://crates.io/crates/aocf ) CLI
89
9- ## Running the tests
10+ ## Setting your session cookie
1011
11- ### All puzzles for each day
12+ * Get your AoC session cookie by following [ these instructions] ( https://github.com/nuxeh/aocf/blob/HEAD/cookie.md )
13+ * Save it locally by running:
1214
13- ``` sh
14- cargo test
15+ ``` shell
16+ aocf set-cookie < COOKIE >
1517```
1618
17- #### With slow tests
19+ ## Finding solutions
20+
21+ ### All solutions
1822
19- ``` sh
20- cargo test --features slow
23+ ``` shell
24+ cargo run
2125```
2226
23- #### With tests for utility functions
27+ ### Only a specific day
2428
25- ``` sh
26- cargo test --features utils
29+ ``` shell
30+ cargo run -- --day 1
2731```
2832
29- ### Both puzzles for one day
33+ ### Only a specific part
3034
31- ``` sh
32- cargo test day_01 --all-features
35+ ``` shell
36+ cargo run -- --day 1 --part 1
3337```
3438
35- ### Single puzzle
39+ ## Running tests
40+
41+ The tests are only for the helpers.
3642
37- ``` sh
38- cargo test day_01_part_1 --all-features
39- ```
43+ ``` shell
44+ cargo test
45+ ```
Original file line number Diff line number Diff line change @@ -112,7 +112,6 @@ impl<T> ExactSizeIterator for Looping<T> where T: Clone {}
112112impl < T > FusedIterator for Looping < T > where T : Clone { }
113113
114114#[ cfg( test) ]
115- #[ cfg( feature = "utils" ) ]
116115mod tests {
117116 use super :: * ;
118117
You can’t perform that action at this time.
0 commit comments