File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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() {
104107fn 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) ;
You can’t perform that action at this time.
0 commit comments