File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
[alias]
2
- rr = "run --release"
3
2
scaffold = "run --bin scaffold -- "
4
3
download = "run --bin download -- "
4
+
5
+ day = "run --bin"
6
+ all = "run"
Original file line number Diff line number Diff line change @@ -72,8 +72,8 @@ Puzzle inputs are not checked into git. [Reasoning](https://old.reddit.com/r/adv
72
72
### Run solutions for a day
73
73
74
74
``` sh
75
- # example: `cargo run --bin 01`
76
- cargo run --bin < day>
75
+ # example: `cargo day 01`
76
+ cargo day < day>
77
77
78
78
# output:
79
79
# Running `target/debug/01`
@@ -86,14 +86,14 @@ cargo run --bin <day>
86
86
# 9 (elapsed: 33.18µs)
87
87
```
88
88
89
- To run an optimized version for benchmarking, use the ` --release ` flag or the alias ` cargo rr --bin <day> ` .
89
+ ` day ` is a shorthand for ` cargo run --bin ` . To run an optimized version for benchmarking, append the ` --release ` flag.
90
90
91
91
Displayed _ timings_ show the raw execution time of your solution without overhead (e.g. file reads).
92
92
93
93
### Run solutions for all days
94
94
95
95
``` sh
96
- cargo run
96
+ cargo all
97
97
98
98
# output:
99
99
# Running `target/release/aoc`
@@ -111,7 +111,7 @@ cargo run
111
111
# Total: 0.20ms
112
112
```
113
113
114
- To run an optimized version for benchmarking, use the ` --release ` flag or the alias ` cargo rr ` .
114
+ ` all ` is an alias for ` cargo run ` . To run an optimized version for benchmarking, use the ` --release ` flag.
115
115
116
116
_ Total timing_ is computed from individual solution _ timings_ and excludes as much overhead as possible.
117
117
Original file line number Diff line number Diff line change @@ -101,5 +101,5 @@ fn main() {
101
101
}
102
102
103
103
println ! ( "---" ) ;
104
- println ! ( "🎄 Type `cargo run --bin {}` to run your solution." , & day_padded) ;
104
+ println ! ( "🎄 Type `cargo day {}` to run your solution." , & day_padded) ;
105
105
}
You can’t perform that action at this time.
0 commit comments