Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions ci/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -104,7 +107,9 @@ fn main() {
fn find_crates(dir: &Path, ws: &Workspace, dst: &mut Vec<Crate>) {
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);
Expand Down
Loading