Skip to content

Commit 2a58c67

Browse files
authored
Optimize dependencies using cargo-shear (#8715)
## Rationale for this change Inspired by @0ax1, trying to see how many dependencies we can remove/simplify Signed-off-by: Adam Gutglick <adam@spiraldb.com>
1 parent 357a4ba commit 2a58c67

28 files changed

Lines changed: 25 additions & 117 deletions

File tree

Cargo.lock

Lines changed: 0 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ rust-version = "1.91.0"
9494
version = "0.1.0"
9595

9696
[workspace.dependencies]
97-
aho-corasick = "1.1.3"
9897
anyhow = "1.0.97"
9998
arbitrary = "1.3.2"
10099
arc-swap = "1.9"
@@ -105,7 +104,6 @@ arrow-buffer = "58.3"
105104
arrow-cast = "58.3"
106105
arrow-data = "58.3"
107106
arrow-ipc = "58.3"
108-
arrow-ord = "58.3"
109107
arrow-row = "58.3"
110108
arrow-schema = "58.3"
111109
arrow-select = "58.3"
@@ -121,7 +119,6 @@ bit-vec = "0.9.0"
121119
bitvec = "1.0.1"
122120
bytes = "1.11.1"
123121
bzip2 = "0.6.0"
124-
cargo_metadata = "0.23.1"
125122
cbindgen = "0.29.0"
126123
cc = "1.2"
127124
cfg-if = "1.0.1"
@@ -152,7 +149,6 @@ datafusion-physical-expr-common = { version = "54" }
152149
datafusion-physical-plan = { version = "54" }
153150
datafusion-pruning = { version = "54" }
154151
datafusion-sqllogictest = { version = "54" }
155-
dirs = "6.0.0"
156152
divan = { package = "codspeed-divan-compat", version = "5.0.0" }
157153
enum-iterator = "2.0.0"
158154
env_logger = "0.11"
@@ -176,7 +172,6 @@ indicatif = "0.18.0"
176172
insta = "1.43"
177173
inventory = "0.3.20"
178174
itertools = "0.14.0"
179-
jetscii = "0.5.3"
180175
jiff = "0.2.0"
181176
jni = { version = "0.22.0" }
182177
kanal = "0.1.1"
@@ -186,12 +181,9 @@ libfuzzer-sys = "0.4"
186181
libloading = "0.8"
187182
liblzma = "0.4"
188183
log = { version = "0.4.21" }
189-
loom = { version = "0.7", features = ["checkpoint"] }
190-
memchr = "2.8.0"
191184
memmap2 = "0.9.5"
192185
mimalloc = "0.1.42"
193186
moka = { version = "0.12.10", default-features = false }
194-
multiversion = "0.8.0"
195187
noodles-bgzf = "0.47.0"
196188
noodles-vcf = { version = "0.88.0", features = ["async"] }
197189
num-traits = "0.2.19"
@@ -224,7 +216,6 @@ rand = "0.10.1"
224216
rand_distr = "0.6"
225217
ratatui = { version = "0.30", default-features = false }
226218
regex = "1.11.0"
227-
regex-automata = "0.4"
228219
reqwest = { version = "0.13.0", features = [
229220
"blocking",
230221
"charset",
@@ -330,11 +321,9 @@ vortex-zstd = { version = "0.1.0", path = "./encodings/zstd", default-features =
330321

331322
# No version constraints for unpublished crates.
332323
vortex-bench = { path = "./vortex-bench", default-features = false }
333-
vortex-compat = { path = "./vortex-test/compat-gen" }
334324
vortex-cuda = { path = "./vortex-cuda", default-features = false }
335325
vortex-cuda-macros = { path = "./vortex-cuda/macros" }
336326
vortex-duckdb = { path = "./vortex-duckdb", default-features = false }
337-
vortex-test-e2e-cuda = { path = "./vortex-test/e2e-cuda", default-features = false }
338327
vortex-tui = { path = "./vortex-tui" }
339328

340329
[workspace.lints.rust]

benchmarks/datafusion-bench/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ rust-version = { workspace = true }
1414
version = { workspace = true }
1515
publish = false
1616

17+
[package.metadata.cargo-shear]
18+
ignored = ["vortex-cuda"]
19+
1720
[dependencies]
1821
anyhow = { workspace = true }
1922
clap = { workspace = true, features = ["derive"] }

benchmarks/duckdb-bench/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ rust-version.workspace = true
1414
version.workspace = true
1515
publish = false
1616

17+
[package.metadata.cargo-shear]
18+
ignored = ["vortex-cuda"]
19+
1720
[dependencies]
1821
anyhow = { workspace = true }
1922
clap = { workspace = true, features = ["derive"] }

encodings/bytebool/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ num-traits = { workspace = true }
2121
vortex-array = { workspace = true }
2222
vortex-buffer = { workspace = true }
2323
vortex-error = { workspace = true }
24-
vortex-mask = { workspace = true }
2524
vortex-session = { workspace = true }
2625

2726
[dev-dependencies]

encodings/experimental/onpair/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ version = { workspace = true }
1717
workspace = true
1818

1919
[dependencies]
20-
memchr = { workspace = true }
2120
num-traits = { workspace = true }
2221
onpair = { workspace = true }
2322
prost = { workspace = true }

encodings/sequence/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ vortex-proto = { workspace = true }
2525
vortex-session = { workspace = true }
2626

2727
[dev-dependencies]
28-
itertools = { workspace = true }
2928
rstest = { workspace = true }
3029
vortex-array = { path = "../../vortex-array", features = ["_test-harness"] }
3130

vortex-array/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@ workspace = true
2323
arbitrary = { workspace = true, optional = true }
2424
arc-swap = { workspace = true }
2525
arcref = { workspace = true }
26-
arrow-arith = { workspace = true }
2726
arrow-array = { workspace = true, features = ["ffi"] }
2827
arrow-buffer = { workspace = true }
2928
arrow-cast = { workspace = true }
3029
arrow-data = { workspace = true }
31-
arrow-ord = { workspace = true }
3230
arrow-schema = { workspace = true, features = ["canonical_extension_types"] }
3331
arrow-select = { workspace = true }
3432
arrow-string = { workspace = true }

vortex-array/src/arrays/bool/vtable/canonical.rs

Lines changed: 0 additions & 2 deletions
This file was deleted.

vortex-array/src/arrays/bool/vtable/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ use crate::builders::BoolBuilder;
2828
use crate::dtype::DType;
2929
use crate::serde::ArrayChildren;
3030
use crate::validity::Validity;
31-
mod canonical;
3231
mod kernel;
3332
mod operations;
3433
mod validity;

0 commit comments

Comments
 (0)