Skip to content

Commit 50b5099

Browse files
authored
publish script: dont modify the contents of wstd-aws-example (#125)
1 parent 7517dcc commit 50b5099

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ci/publish.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ const CRATES_TO_PUBLISH: &[&str] = &[
2121
"wstd",
2222
"wstd-axum-macro",
2323
"wstd-axum",
24-
"wstd-aws",
24+
];
25+
// These crates will never have their manifest modified by this publish script
26+
const CRATES_TO_IGNORE: &[&str] = &[
27+
"wstd-aws-example"
2528
];
2629

2730
#[derive(Debug)]
@@ -104,7 +107,9 @@ fn main() {
104107
fn find_crates(dir: &Path, ws: &Workspace, dst: &mut Vec<Crate>) {
105108
if dir.join("Cargo.toml").exists() {
106109
let krate = read_crate(Some(ws), &dir.join("Cargo.toml"));
107-
if !krate.publish || CRATES_TO_PUBLISH.iter().any(|c| krate.name == *c) {
110+
if CRATES_TO_IGNORE.iter().any(|c| krate.name == *c) {
111+
// Ignore!
112+
} else if !krate.publish || CRATES_TO_PUBLISH.iter().any(|c| krate.name == *c) {
108113
dst.push(krate);
109114
} else {
110115
panic!("failed to find {:?} in whitelist or blacklist", krate.name);

0 commit comments

Comments
 (0)