1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-07-03 00:46:57 +02:00

Add "dev update"

This commit is contained in:
mo8it
2024-04-17 15:55:50 +02:00
parent 30636e7cf3
commit 501b973c25
13 changed files with 181 additions and 205 deletions

View File

@ -9,6 +9,7 @@ use std::{
use crate::{
embedded::{WriteStrategy, EMBEDDED_FILES},
info_file::Mode,
DEVELOPING_OFFIFICAL_RUSTLINGS,
};
pub struct TerminalFileLink<'a> {
@ -50,9 +51,7 @@ impl Exercise {
cmd.arg(command);
// A hack to make `cargo run` work when developing Rustlings.
// Use `dev/Cargo.toml` when in the directory of the repository.
#[cfg(debug_assertions)]
if std::path::Path::new("tests").exists() {
if DEVELOPING_OFFIFICAL_RUSTLINGS {
cmd.arg("--manifest-path").arg("dev/Cargo.toml");
}