From 670bdfbf8534eab3b3ec72133624c03e1bedc59e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Mon, 30 Nov 2026 11:30:02 +0200 Subject: [PATCH] Keep proc-macro-api dependencies on a single line --- crates/proc-macro-api/Cargo.toml | 7 ++----- crates/proc-macro-srv-cli/Cargo.toml | 12 ++++-------- crates/proc-macro-srv/Cargo.toml | 5 ++--- 3 files changed, 8 insertions(+), 16 deletions(-) diff --git a/crates/proc-macro-api/Cargo.toml b/crates/proc-macro-api/Cargo.toml index e88f43178868..6bbdc8af258e 100644 --- a/crates/proc-macro-api/Cargo.toml +++ b/crates/proc-macro-api/Cargo.toml @@ -35,11 +35,8 @@ semver.workspace = true rayon.workspace = true [dev-dependencies] -# Enable both features for test. -proc-macro-api = { path = "../proc-macro-api", features = [ - "in-ra", - "in-proc-macro-srv", -] } +# Enable both features for test, keep on a single line for cargo-workspaces. +proc-macro-api = { path = "../proc-macro-api", features = ["in-ra", "in-proc-macro-srv"] } [features] default = ["in-ra"] diff --git a/crates/proc-macro-srv-cli/Cargo.toml b/crates/proc-macro-srv-cli/Cargo.toml index 15e818210b43..3c7831b66533 100644 --- a/crates/proc-macro-srv-cli/Cargo.toml +++ b/crates/proc-macro-srv-cli/Cargo.toml @@ -15,9 +15,8 @@ doctest = false [dependencies] proc-macro-srv = { workspace = true, optional = true } -proc-macro-api = { path = "../proc-macro-api", version = "0.0.0", default-features = false, features = [ - "in-proc-macro-srv", -] } +# Keep on a single line for cargo-workspaces +proc-macro-api = { path = "../proc-macro-api", version = "0.0.0", default-features = false, features = ["in-proc-macro-srv"] } clap = { version = "4.5.42", default-features = false, features = ["std"] } # span = { workspace = true, default-features = false } does not work span = { path = "../span", version = "0.0.0", default-features = false } @@ -30,11 +29,8 @@ intern.workspace = true # used as proc macro test target proc-macro-test.path = "../proc-macro-srv/proc-macro-test" -# Enable the in-ra feature for tests. -proc-macro-api = { path = "../proc-macro-api", default-features = false, features = [ - "in-proc-macro-srv", - "in-ra", -] } +# Enable the in-ra feature for tests, keep on a single line for cargo-workspaces. +proc-macro-api = { path = "../proc-macro-api", default-features = false, features = ["in-proc-macro-srv", "in-ra"] } tt.workspace = true [features] diff --git a/crates/proc-macro-srv/Cargo.toml b/crates/proc-macro-srv/Cargo.toml index 9f4d4e72e5e5..3713f2529fd3 100644 --- a/crates/proc-macro-srv/Cargo.toml +++ b/crates/proc-macro-srv/Cargo.toml @@ -19,9 +19,8 @@ rustc-hash = { workspace = true, optional = true } span = { path = "../span", version = "0.0.0", default-features = false , optional = true } intern = { workspace = true, optional = true } tt = { path = "../tt", version = "0.0.0", default-features = false } -proc-macro-api = { path = "../proc-macro-api", version = "0.0.0", default-features = false, features = [ - "in-proc-macro-srv", -] } +# Keep on a single line for cargo-workspaces +proc-macro-api = { path = "../proc-macro-api", version = "0.0.0", default-features = false, features = ["in-proc-macro-srv"] } stdx = { workspace = true, optional = true } [dev-dependencies]