Skip to content

Commit ed7db4a

Browse files
committed
feat[xtask]: faster public-api
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
1 parent efdfaee commit ed7db4a

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ async-trait = "0.1.89"
106106
bindgen = "0.72.0"
107107
bit-vec = "0.8.0"
108108
bitvec = "1.0.1"
109-
cargo_metadata = "0.23.1"
110109
bytes = "1.11.1"
111110
bzip2 = "0.6.0"
111+
cargo_metadata = "0.23.1"
112112
cbindgen = "0.29.0"
113113
cc = "1.2"
114114
cfg-if = "1.0.1"

vortex-cuda/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ readme = { workspace = true }
1212
repository = { workspace = true }
1313
rust-version = { workspace = true }
1414
version = { workspace = true }
15+
publish = false
1516

1617
[lints]
1718
workspace = true

vortex-cuda/cub/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ readme = { workspace = true }
1515
repository = { workspace = true }
1616
rust-version = { workspace = true }
1717
version = { workspace = true }
18+
publish = false
1819

1920
[lints]
2021
workspace = true

vortex-cuda/nvcomp/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ readme = { workspace = true }
1212
repository = { workspace = true }
1313
rust-version = { workspace = true }
1414
version = { workspace = true }
15+
publish = false
1516

1617
[lints]
1718
workspace = true

vortex-tui/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ readme = "README.md"
1212
repository = { workspace = true }
1313
rust-version = { workspace = true }
1414
version = { workspace = true }
15+
publish = false
1516

1617
[dependencies]
1718
anyhow = { workspace = true }

xtask/src/public_api.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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).
1313
fn 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.

0 commit comments

Comments
 (0)