From f5e27997ddb9c89189691ff4130d3cabc3e14aae Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 2 Mar 2022 18:56:56 +0100 Subject: [PATCH] Specify default-members for virtual workspace --- Cargo.toml | 2 ++ xtask/src/ci.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e4a5da1d..0b790423 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,2 +1,4 @@ [workspace] members = ["crates/*", "examples/*", "xtask"] +# xtask should only be compiled when invoked explicitly +default-members = ["crates/*", "examples/*"] diff --git a/xtask/src/ci.rs b/xtask/src/ci.rs index 755179a1..860f576b 100644 --- a/xtask/src/ci.rs +++ b/xtask/src/ci.rs @@ -71,7 +71,7 @@ impl CiTask { cmd!("rustup run stable cargo check -p ruma-identifiers --no-default-features").run()?; // 2. Run tests - let workspace_res = cmd!("rustup run stable cargo test --workspace --features __ci").run(); + let workspace_res = cmd!("rustup run stable cargo test --features __ci").run(); let events_compat_res = cmd!("rustup run stable cargo test -p ruma-events --features compat compat").run();