Skip to content

Commit 3136249

Browse files
authored
fix: add wsc-attestation to publish script dependency order (#38)
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.
1 parent 5f28435 commit 3136249

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/publish.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ use std::thread;
1111
use std::time::Duration;
1212

1313
// List of crates to publish in dependency order
14-
const CRATES_TO_PUBLISH: &[&str] = &["wsc", "wsc-cli"];
14+
// wsc-attestation MUST be first: wsc depends on it, wsc-cli depends on wsc
15+
const CRATES_TO_PUBLISH: &[&str] = &["wsc-attestation", "wsc", "wsc-cli"];
1516

1617
struct Workspace {
1718
version: String,
@@ -44,6 +45,10 @@ fn main() {
4445
version: ws_version,
4546
};
4647

48+
// Add attestation crate (must be published first - wsc depends on it)
49+
let attestation_crate = read_crate(Some(&ws), "./src/attestation/Cargo.toml".as_ref());
50+
crates.push(attestation_crate);
51+
4752
// Add main library crate
4853
let lib_crate = read_crate(Some(&ws), "./src/lib/Cargo.toml".as_ref());
4954
crates.push(lib_crate);

0 commit comments

Comments
 (0)