Skip to content

Commit 98a960f

Browse files
committed
Update README to match new project structure
1 parent 824c951 commit 98a960f

File tree

4 files changed

+26
-25
lines changed

4 files changed

+26
-25
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
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
@@ -65,7 +65,7 @@ jobs:
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

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ version = "0.1.0"
44
edition = "2021"
55
rust-version = "1.74.1"
66

7-
[features]
8-
slow = []
9-
utils = []
10-
117
[dependencies]
128
aocf = "0.1.21"
139
anyhow = "1.0.93"

README.md

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff 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+
```

src/helpers/looping.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ impl<T> ExactSizeIterator for Looping<T> where T: Clone {}
112112
impl<T> FusedIterator for Looping<T> where T: Clone {}
113113

114114
#[cfg(test)]
115-
#[cfg(feature = "utils")]
116115
mod tests {
117116
use super::*;
118117

0 commit comments

Comments
 (0)