File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change
1
+ [alias ]
2
+ dev = [" run" , " --" , " dev" ]
Original file line number Diff line number Diff line change 1
- # Don't edit the `bin` list manually! It is updated by `cargo run -- dev update`. This comment line will be stripped in `rustlings init`.
1
+ # Don't edit the `bin` list manually! It is updated by `cargo dev update`. This comment line will be stripped in `rustlings init`.
2
2
bin = [
3
3
{ name = " intro1" , path = " ../exercises/00_intro/intro1.rs" },
4
4
{ name = " intro1_sol" , path = " ../solutions/00_intro/intro1.rs" },
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ fn check_cargo_toml(
43
43
if old_bins != new_bins {
44
44
if cfg ! ( debug_assertions) {
45
45
bail ! (
46
- "The file `dev/Cargo.toml` is outdated. Run `cargo run -- dev update` to update it. Then run `cargo run -- dev check` again"
46
+ "The file `dev/Cargo.toml` is outdated. Run `cargo dev update` to update it. Then run `cargo run -- dev check` again"
47
47
) ;
48
48
}
49
49
@@ -379,7 +379,7 @@ pub fn check(require_solutions: bool) -> Result<()> {
379
379
}
380
380
381
381
if cfg ! ( debug_assertions) {
382
- // A hack to make `cargo run -- dev check` work when developing Rustlings.
382
+ // A hack to make `cargo dev check` work when developing Rustlings.
383
383
check_cargo_toml ( & info_file. exercises , "dev/Cargo.toml" , b"../" ) ?;
384
384
} else {
385
385
check_cargo_toml ( & info_file. exercises , "Cargo.toml" , b"" ) ?;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ pub fn update() -> Result<()> {
28
28
let info_file = InfoFile :: parse ( ) ?;
29
29
30
30
if cfg ! ( debug_assertions) {
31
- // A hack to make `cargo run -- dev update` work when developing Rustlings.
31
+ // A hack to make `cargo dev update` work when developing Rustlings.
32
32
update_cargo_toml ( & info_file. exercises , "dev/Cargo.toml" , b"../" )
33
33
. context ( "Failed to update the file `dev/Cargo.toml`" ) ?;
34
34
You can’t perform that action at this time.
0 commit comments