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`.
22bin = [
33 { name = " intro1" , path = " ../exercises/00_intro/intro1.rs" },
44 { 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(
4343 if old_bins != new_bins {
4444 if cfg ! ( debug_assertions) {
4545 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"
4747 ) ;
4848 }
4949
@@ -379,7 +379,7 @@ pub fn check(require_solutions: bool) -> Result<()> {
379379 }
380380
381381 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.
383383 check_cargo_toml ( & info_file. exercises , "dev/Cargo.toml" , b"../" ) ?;
384384 } else {
385385 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<()> {
2828 let info_file = InfoFile :: parse ( ) ?;
2929
3030 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.
3232 update_cargo_toml ( & info_file. exercises , "dev/Cargo.toml" , b"../" )
3333 . context ( "Failed to update the file `dev/Cargo.toml`" ) ?;
3434
You can’t perform that action at this time.
0 commit comments