File tree Expand file tree Collapse file tree 1 file changed +44
-2
lines changed Expand file tree Collapse file tree 1 file changed +44
-2
lines changed Original file line number Diff line number Diff line change 1- [ ![ Go ] ( https://github.com/qselle/advent-of-code-2024/actions/workflows/rust.yml/badge.svg )] ( https://github.com/qselle/advent-of-code-2023 /actions/workflows/go .yml ) [ ![ wakatime] ( https://wakatime.com/badge/github/qselle/advent-of-code-2024.svg )] ( https://wakatime.com/badge/github/qselle/advent-of-code-2024 )
1+ [ ![ Rust ] ( https://github.com/qselle/advent-of-code-2024/actions/workflows/rust.yml/badge.svg )] ( https://github.com/qselle/advent-of-code-2024 /actions/workflows/rust .yml ) [ ![ wakatime] ( https://wakatime.com/badge/github/qselle/advent-of-code-2024.svg )] ( https://wakatime.com/badge/github/qselle/advent-of-code-2024 )
22# Advent of code 2024 🎄🎅
33
44This time in Rust to learn the language! Using https://github.com/gobanos/cargo-aoc 🦀.
55
66Enter the competition: https://adventofcode.com/2024
77
8- ## Build
8+ ## Build with ` cargo-aoc `
9+
10+ Install ` cargo-aoc ` crate:
11+
12+ ``` console
13+ air :: ~/Work/advent-of-code-2024 ‹main› » cargo install cargo-aoc
14+ ```
15+
16+ Run:
17+
18+ ``` console
19+ air :: ~/Work/advent-of-code-2024 ‹main*› » cargo aoc 2 ↵
20+ Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.00s
21+ Compiling aoc-autobuild v0.3.0 (/Users/quentin/Work/advent-of-code-2024/target/aoc/aoc-autobuild)
22+ Finished `release` profile [optimized] target(s) in 0.12s
23+ Running `target/release/aoc-autobuild`
24+ AOC 2024
25+ Day 1 - Part 1 : 1651298
26+ generator: 135.833µs,
27+ runner: 542ns
28+
29+ Day 1 - Part 2 : 21306195
30+ generator: 104.125µs,
31+ runner: 157.5µs
32+ ```
933
1034## Test
35+
36+ ``` console
37+ air :: ~/Work/advent-of-code-2024 ‹main› » cargo test
38+ Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s
39+ Running unittests src/lib.rs (target/debug/deps/advent_of_code_2024-027d060ec3f37a3f)
40+
41+ running 2 tests
42+ test day1::tests::test_part2 ... ok
43+ test day1::tests::test_part1 ... ok
44+
45+ test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
46+
47+ Doc-tests advent_of_code_2024
48+
49+ running 0 tests
50+
51+ test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
52+ ```
You can’t perform that action at this time.
0 commit comments