From 9039f4db31597f27cb82b80b4afcf869240a0349 Mon Sep 17 00:00:00 2001 From: Vancha Date: Tue, 18 Nov 2025 11:44:24 +0100 Subject: [PATCH 1/2] changes cargo test and run behavior Ignores a doctest that causes the app to launch when tests are called adds both the current workspace and subcrates to default-members, to make sure tests are ran for subcrates, but root crate is still run when cargo test and cargo run are called --- Cargo.toml | 3 ++- crates/chippie-gui/src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 049cea1..7a8e886 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,8 @@ edition = "2024" chippie-gui = { path = "./crates/chippie-gui", version = "0.1.0" } [workspace] -members = [ +default-members = [ + ".", "crates/chippie-emulator", "crates/chippie-gui", ] diff --git a/crates/chippie-gui/src/lib.rs b/crates/chippie-gui/src/lib.rs index aafec71..2d7269e 100644 --- a/crates/chippie-gui/src/lib.rs +++ b/crates/chippie-gui/src/lib.rs @@ -32,7 +32,7 @@ impl Application { /// /// # Examples /// - /// ``` + /// ```ignore /// use chippie_gui::Application; /// /// let _ = Application::run(); From 6c7e89ca602488efdf040cb12dcaf614756da0e5 Mon Sep 17 00:00:00 2001 From: Elijah Shvarov Date: Wed, 19 Nov 2025 22:28:13 +0100 Subject: [PATCH 2/2] Clean up Cargo.toml This commit cleans up workspace member declaration in Cargo.toml --- Cargo.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7a8e886..24c7b36 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,9 +10,11 @@ edition = "2024" chippie-gui = { path = "./crates/chippie-gui", version = "0.1.0" } [workspace] +members = [ + "crates/*", +] default-members = [ ".", - "crates/chippie-emulator", - "crates/chippie-gui", + "crates/*", ]