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);