Skip to content

Commit dc316ab

Browse files
nipunn1313Convex, Inc.
authored and
Convex, Inc.
committed
Strip unused dependencies based on cargo machete (just machete) (#26867)
Remove bunch of unused dep arrows in the dep graph. GitOrigin-RevId: e6d9c293231dadcbbba241b40519614f3058103c
1 parent 84bdee4 commit dc316ab

File tree

12 files changed

+11
-77
lines changed

12 files changed

+11
-77
lines changed

Cargo.lock

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

crates/application/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ float_next_after = { workspace = true }
2727
function_runner = { path = "../function_runner" }
2828
futures = { workspace = true }
2929
futures-async-stream = { workspace = true }
30-
governor = { workspace = true }
3130
headers = { workspace = true }
3231
http = { workspace = true }
3332
http_client = { path = "../../crates/http_client" }

crates/fivetran_common/Cargo.toml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,10 @@ path = "src/lib.rs"
1515

1616
[dependencies]
1717
anyhow = { workspace = true }
18-
async-compression = { workspace = true }
19-
async-trait = { workspace = true }
20-
base64 = { workspace = true }
2118
proptest = { workspace = true, optional = true }
22-
proptest-derive = { workspace = true, optional = true }
2319
prost = { workspace = true }
2420
prost-types = { workspace = true }
2521
reqwest = { workspace = true, features = ["json", "native-tls-vendored"] }
26-
serde = { workspace = true, features = ["derive"] }
27-
serde_json = { workspace = true }
28-
thiserror = { workspace = true }
29-
tokio = { workspace = true }
30-
tokio-stream = { workspace = true }
3122
tonic = { workspace = true, features = ["gzip"] }
3223
url = { workspace = true }
3324

@@ -43,18 +34,19 @@ tonic-build = { workspace = true }
4334
[dev-dependencies]
4435
maplit = { workspace = true }
4536
proptest = { workspace = true }
46-
proptest-derive = { workspace = true }
47-
rand = { workspace = true }
48-
uuid = { workspace = true }
4937

5038
[package.metadata.cargo-machete]
5139
ignored = [
5240
# Build dependencies not understood
41+
"bytes",
5342
"cfg_if",
43+
"futures_util",
44+
"reqwest",
45+
"tokio",
5446
"tonic_build",
5547
# Prost required via tonic macro
5648
"prost",
5749
]
5850

5951
[features]
60-
testing = ["proptest", "proptest-derive"]
52+
testing = ["proptest"]

crates/fivetran_destination/Cargo.toml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ convex_fivetran_common = { path = "../fivetran_common" }
2626
csv-async = { workspace = true }
2727
derive_more = { workspace = true }
2828
futures = { workspace = true }
29-
futures-async-stream = { workspace = true }
3029
maplit = { workspace = true }
3130
prost = { workspace = true }
3231
prost-types = { workspace = true }
@@ -35,25 +34,12 @@ serde = { workspace = true, features = ["derive"] }
3534
serde_json = { workspace = true }
3635
thiserror = { workspace = true }
3736
tokio = { workspace = true }
38-
tokio-stream = { workspace = true }
3937
tonic = { workspace = true, features = ["gzip"] }
40-
url = { workspace = true }
41-
42-
[build-dependencies]
43-
bytes = { workspace = true }
44-
cfg-if = { workspace = true }
45-
futures-util = { workspace = true }
46-
reqwest = { workspace = true, features = ["native-tls-vendored"] }
47-
tokio = { workspace = true }
48-
tonic-build = { workspace = true }
4938

5039
[dev-dependencies]
5140
common = { path = "../common", features = ["testing"] }
5241
convex_fivetran_common = { path = "../fivetran_common", features = ["testing"] }
5342
proptest = { workspace = true }
54-
proptest-derive = { workspace = true }
55-
rand = { workspace = true }
56-
uuid = { workspace = true }
5743

5844
[package.metadata.cargo-machete]
5945
ignored = [

crates/function_runner/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ development = ["mysql"]
1212
anyhow = { workspace = true }
1313
async-trait = { workspace = true }
1414
async_lru = { path = "../async_lru" }
15-
cmd_util = { path = "../cmd_util" }
1615
common = { path = "../common" }
1716
convex_macro = { path = "../convex_macro" }
1817
database = { path = "../database" }
@@ -26,7 +25,6 @@ metrics = { path = "../metrics" }
2625
minitrace = { workspace = true }
2726
model = { path = "../model" }
2827
parking_lot = { workspace = true }
29-
pb = { path = "../pb" }
3028
prometheus = { workspace = true }
3129
proptest = { workspace = true, optional = true }
3230
proptest-derive = { workspace = true, optional = true }

crates/indexing/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ errors = { path = "../errors" }
1616
futures = { workspace = true }
1717
imbl = { workspace = true }
1818
itertools = { workspace = true }
19-
maplit = { workspace = true }
2019
metrics = { path = "../metrics" }
2120
minitrace = { workspace = true }
2221
tracing = { workspace = true }

crates/isolate/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ cmd_util = { path = "../cmd_util" }
2828
common = { path = "../common" }
2929
const-oid = { workspace = true }
3030
convex_macro = { path = "../convex_macro" }
31-
crossbeam-channel = { workspace = true }
3231
database = { path = "../database" }
3332
deno_core = { workspace = true }
3433
deno_core_icudata = { workspace = true }

crates/model/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,9 @@ testing = [
7676
"storage/testing",
7777
"value/testing",
7878
]
79+
80+
[package.metadata.cargo-machete]
81+
ignored = [
82+
# Used in a serde(with) clause
83+
"serde_bytes",
84+
]

crates/node_executor/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ anyhow = "1"
1313
[dependencies]
1414
anyhow = { workspace = true }
1515
async-trait = { workspace = true }
16-
async_zip = { workspace = true }
17-
bytes = { workspace = true }
1816
cmd_util = { path = "../cmd_util" }
1917
common = { path = "../common" }
2018
errors = { path = "../errors" }

crates/sync/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ anyhow = { workspace = true }
1313
application = { path = "../application" }
1414
cmd_util = { path = "../cmd_util" }
1515
common = { path = "../common" }
16-
database = { path = "../database" }
1716
errors = { path = "../errors" }
1817
futures = { workspace = true }
1918
isolate = { path = "../isolate" }
@@ -25,7 +24,6 @@ model = { path = "../model" }
2524
parking_lot = { workspace = true }
2625
proptest = { workspace = true, optional = true }
2726
proptest-derive = { workspace = true, optional = true }
28-
rand = { workspace = true }
2927
serde = { workspace = true }
3028
serde_json = { workspace = true }
3129
sync_types = { package = "convex_sync_types", path = "../convex/sync_types" }
@@ -35,7 +33,6 @@ tracing = { workspace = true }
3533
application = { path = "../application", features = ["testing"] }
3634
common = { path = "../common", features = ["testing"] }
3735
convex_macro = { path = "../convex_macro" }
38-
database = { path = "../database", features = ["testing"] }
3936
errors = { path = "../errors", features = ["testing"] }
4037
isolate = { path = "../isolate", features = ["testing"] }
4138
keybroker = { path = "../keybroker", features = ["testing"] }
@@ -50,7 +47,6 @@ runtime = { path = "../runtime", features = ["testing"] }
5047
testing = [
5148
"application/testing",
5249
"common/testing",
53-
"database/testing",
5450
"errors/testing",
5551
"isolate/testing",
5652
"keybroker/testing",

crates/text_search/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,14 @@ doctest = false
1212
anyhow = { workspace = true }
1313
byteorder = { workspace = true }
1414
common = { path = "../common" }
15-
csf = { workspace = true }
1615
maplit = { workspace = true }
1716
metrics = { path = "../metrics" }
1817
minitrace = { workspace = true }
19-
pb = { path = "../pb" }
2018
proptest = { workspace = true, optional = true }
2119
proptest-derive = { workspace = true, optional = true }
2220
sucds = { workspace = true }
2321
tantivy = { workspace = true }
2422
tantivy-common = { workspace = true }
25-
tempfile = { workspace = true }
2623
value = { path = "../value" }
2724

2825
[dev-dependencies]

crates/vector/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ anyhow = { workspace = true }
1313
async-trait = { workspace = true }
1414
atomic_refcell = { workspace = true }
1515
bitvec = { workspace = true }
16-
byteorder = { workspace = true }
1716
common = { path = "../common" }
18-
csf = { workspace = true }
1917
errors = { path = "../errors" }
2018
futures = { workspace = true }
2119
imbl = { workspace = true }

0 commit comments

Comments
 (0)