From 0e985a403afd0b7bd0a4f94365992474d76452d8 Mon Sep 17 00:00:00 2001
From: Pat Hickey
Date: Thu, 12 Mar 2026 10:27:15 -0700
Subject: [PATCH] publish script: dont modify the contents of wstd-aws-example
---
ci/publish.rs | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/ci/publish.rs b/ci/publish.rs
index cff7b58..66867ce 100644
--- a/ci/publish.rs
+++ b/ci/publish.rs
@@ -21,7 +21,10 @@ const CRATES_TO_PUBLISH: &[&str] = &[
"wstd",
"wstd-axum-macro",
"wstd-axum",
- "wstd-aws",
+];
+// These crates will never have their manifest modified by this publish script
+const CRATES_TO_IGNORE: &[&str] = &[
+ "wstd-aws-example"
];
#[derive(Debug)]
@@ -104,7 +107,9 @@ fn main() {
fn find_crates(dir: &Path, ws: &Workspace, dst: &mut Vec) {
if dir.join("Cargo.toml").exists() {
let krate = read_crate(Some(ws), &dir.join("Cargo.toml"));
- if !krate.publish || CRATES_TO_PUBLISH.iter().any(|c| krate.name == *c) {
+ if CRATES_TO_IGNORE.iter().any(|c| krate.name == *c) {
+ // Ignore!
+ } else if !krate.publish || CRATES_TO_PUBLISH.iter().any(|c| krate.name == *c) {
dst.push(krate);
} else {
panic!("failed to find {:?} in whitelist or blacklist", krate.name);