File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,9 +106,9 @@ async-trait = "0.1.89"
106106bindgen = " 0.72.0"
107107bit-vec = " 0.8.0"
108108bitvec = " 1.0.1"
109- cargo_metadata = " 0.23.1"
110109bytes = " 1.11.1"
111110bzip2 = " 0.6.0"
111+ cargo_metadata = " 0.23.1"
112112cbindgen = " 0.29.0"
113113cc = " 1.2"
114114cfg-if = " 1.0.1"
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ readme = { workspace = true }
1212repository = { workspace = true }
1313rust-version = { workspace = true }
1414version = { workspace = true }
15+ publish = false
1516
1617[lints ]
1718workspace = true
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ readme = { workspace = true }
1515repository = { workspace = true }
1616rust-version = { workspace = true }
1717version = { workspace = true }
18+ publish = false
1819
1920[lints ]
2021workspace = true
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ readme = { workspace = true }
1212repository = { workspace = true }
1313rust-version = { workspace = true }
1414version = { workspace = true }
15+ publish = false
1516
1617[lints ]
1718workspace = true
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ readme = "README.md"
1212repository = { workspace = true }
1313rust-version = { workspace = true }
1414version = { workspace = true }
15+ publish = false
1516
1617[dependencies ]
1718anyhow = { workspace = true }
Original file line number Diff line number Diff line change @@ -11,11 +11,7 @@ use xshell::cmd;
1111
1212/// Returns true if the package is published to a registry (i.e. `publish` is not disabled).
1313fn is_published ( pkg : & Package ) -> bool {
14- match & pkg. publish {
15- Some ( registries) => !registries. is_empty ( ) ,
16- // No `publish` field means it publishes to crates.io by default.
17- None => true ,
18- }
14+ pkg. publish . as_ref ( ) . map ( |v| !v. is_empty ( ) ) . unwrap_or ( true )
1915}
2016
2117/// Regenerate `public-api.lock` files for all published crates.
You can’t perform that action at this time.
0 commit comments