From f968a774e4245831338b072b363d4c5dcfbaef13 Mon Sep 17 00:00:00 2001 From: Ralf Anton Beier Date: Tue, 27 Jan 2026 06:33:52 +0100 Subject: [PATCH] fix: add wsc-attestation to publish script dependency order wsc depends on wsc-attestation ^0.5.0, but the publish script only published wsc and wsc-cli. Add wsc-attestation first in the publish order so crates.io has it available when wsc is published. --- scripts/publish.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/publish.rs b/scripts/publish.rs index cc29b70..f64d353 100644 --- a/scripts/publish.rs +++ b/scripts/publish.rs @@ -11,7 +11,8 @@ use std::thread; use std::time::Duration; // List of crates to publish in dependency order -const CRATES_TO_PUBLISH: &[&str] = &["wsc", "wsc-cli"]; +// wsc-attestation MUST be first: wsc depends on it, wsc-cli depends on wsc +const CRATES_TO_PUBLISH: &[&str] = &["wsc-attestation", "wsc", "wsc-cli"]; struct Workspace { version: String, @@ -44,6 +45,10 @@ fn main() { version: ws_version, }; + // Add attestation crate (must be published first - wsc depends on it) + let attestation_crate = read_crate(Some(&ws), "./src/attestation/Cargo.toml".as_ref()); + crates.push(attestation_crate); + // Add main library crate let lib_crate = read_crate(Some(&ws), "./src/lib/Cargo.toml".as_ref()); crates.push(lib_crate);