Skip to content

Commit e8a44cf

Browse files
nipunn1313Convex, Inc.
authored andcommitted
Use cargo-machete to slim unused edges on dependency graph (#24199)
Relax constraints on build graph to give cargo more leeway to compile things. GitOrigin-RevId: c854852eda57982e04c9d65c4b8139f377080cc2
1 parent 7d0c943 commit e8a44cf

File tree

16 files changed

+8
-99
lines changed

16 files changed

+8
-99
lines changed

Cargo.lock

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

crates/async_lru/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ license = "LicenseRef-FSL-1.1-Apache-2.0"
77
[dependencies]
88
anyhow = { workspace = true }
99
async-broadcast = { workspace = true }
10-
async-trait = { workspace = true }
1110
common = { path = "../common" }
1211
errors = { path = "../errors" }
1312
futures = { workspace = true }
1413
lru = { workspace = true }
1514
metrics = { path = "../metrics" }
1615
parking_lot = { workspace = true }
17-
prometheus = { workspace = true }
1816
tracing = { workspace = true }
1917

2018
[dev-dependencies]

crates/common/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ governor = { workspace = true }
3333
headers = { workspace = true }
3434
hex = { workspace = true }
3535
http = { workspace = true }
36-
humansize = { workspace = true }
3736
hyper = { workspace = true }
3837
itertools = { workspace = true }
3938
maplit = { workspace = true }
@@ -62,7 +61,6 @@ shape_inference = { path = "../shape_inference" }
6261
sourcemap = { workspace = true }
6362
strum = { workspace = true }
6463
sync_types = { package = "convex_sync_types", path = "../convex/sync_types" }
65-
tempfile = { workspace = true }
6664
thiserror = { workspace = true }
6765
tokio = { workspace = true }
6866
tonic = { workspace = true }

crates/events/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,8 @@ testing = [
2121
"proptest-derive",
2222
]
2323

24-
24+
[package.metadata.cargo-machete]
25+
ignored = [
26+
"proptest",
27+
"proptest-derive",
28+
]

crates/function_runner/Cargo.toml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,11 @@ prometheus = { workspace = true }
3131
proptest = { workspace = true, optional = true }
3232
proptest-derive = { workspace = true, optional = true }
3333
runtime = { path = "../runtime" }
34-
search = { path = "../search" }
35-
serde_json = { workspace = true }
3634
storage = { path = "../storage" }
3735
sync_types = { package = "convex_sync_types", path = "../convex/sync_types" }
3836
tokio = { workspace = true }
39-
tonic = { workspace = true }
40-
tracing = { workspace = true }
41-
url = { workspace = true }
4237
usage_tracking = { path = "../usage_tracking" }
4338
value = { path = "../value" }
44-
vector = { path = "../vector" }
4539

4640
[dev-dependencies]
4741

@@ -56,12 +50,9 @@ model = { path = "../model", features = ["testing"] }
5650
proptest = { workspace = true }
5751
proptest-derive = { workspace = true }
5852
runtime = { path = "../runtime", features = ["testing"] }
59-
search = { path = "../search", features = ["testing"] }
60-
shape_inference = { path = "../shape_inference", features = ["testing"] }
6153
storage = { path = "../storage", features = ["testing"] }
6254
usage_tracking = { path = "../usage_tracking", features = ["testing"] }
6355
value = { path = "../value", features = ["testing"] }
64-
vector = { path = "../vector", features = ["testing"] }
6556

6657
[features]
6758
testing = [
@@ -76,10 +67,8 @@ testing = [
7667
"proptest",
7768
"proptest-derive",
7869
"runtime/testing",
79-
"search/testing",
8070
"storage/testing",
8171
"usage_tracking/testing",
8272
"value/testing",
83-
"vector/testing",
8473
]
8574
tracy-tracing = ["common/tracy-tracing"]

crates/indexing/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ async-trait = { workspace = true }
1414
common = { path = "../common" }
1515
errors = { path = "../errors" }
1616
futures = { workspace = true }
17-
futures-async-stream = { workspace = true }
1817
imbl = { workspace = true }
1918
itertools = { workspace = true }
2019
maplit = { workspace = true }

crates/isolate/Cargo.toml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ async-broadcast = { workspace = true }
2121
async-channel = { workspace = true }
2222
async-recursion = { workspace = true }
2323
async-trait = { workspace = true }
24-
async_lru = { path = "../async_lru" }
2524
axum = { workspace = true }
2625
base64 = { workspace = true }
2726
bytes = { workspace = true }
@@ -42,8 +41,6 @@ futures = { workspace = true }
4241
headers = { workspace = true }
4342
http = { workspace = true }
4443
humansize = { workspace = true }
45-
imbl = { workspace = true }
46-
indexing = { path = "../indexing" }
4744
itertools = { workspace = true }
4845
keybroker = { path = "../keybroker" }
4946
maplit = { workspace = true, optional = true }
@@ -76,10 +73,8 @@ sourcemap = { workspace = true }
7673
spki = { workspace = true }
7774
storage = { path = "../storage", optional = true }
7875
sync_types = { package = "convex_sync_types", path = "../convex/sync_types" }
79-
tempfile = { workspace = true, optional = true }
8076
thiserror = { workspace = true }
8177
tokio = { workspace = true }
82-
tonic = { workspace = true }
8378
tracing = { workspace = true }
8479
url = { workspace = true }
8580
usage_tracking = { path = "../usage_tracking" }
@@ -99,9 +94,7 @@ async-channel = { workspace = true }
9994
common = { path = "../common", features = ["testing"] }
10095
database = { path = "../database", features = ["testing"] }
10196
errors = { path = "../errors", features = ["testing"] }
102-
hex = { workspace = true }
10397
hyper = { workspace = true }
104-
indexing = { path = "../indexing", features = ["testing"] }
10598
keybroker = { path = "../keybroker", features = ["testing"] }
10699
maplit = { workspace = true }
107100
metrics = { path = "../metrics", features = ["testing"] }
@@ -115,7 +108,6 @@ runtime = { path = "../runtime", features = ["testing"] }
115108
search = { path = "../search", features = ["testing"] }
116109
shape_inference = { path = "../shape_inference", features = ["testing"] }
117110
storage = { path = "../storage", features = ["testing"] }
118-
tempfile = { workspace = true }
119111
usage_tracking = { path = "../usage_tracking", features = ["testing"] }
120112
value = { path = "../value", features = ["testing"] }
121113
vector = { path = "../vector", features = ["testing"] }
@@ -125,7 +117,6 @@ testing = [
125117
"common/testing",
126118
"database/testing",
127119
"errors/testing",
128-
"indexing/testing",
129120
"keybroker/testing",
130121
"maplit",
131122
"metrics/testing",
@@ -138,7 +129,6 @@ testing = [
138129
"search/testing",
139130
"storage",
140131
"storage/testing",
141-
"tempfile",
142132
"usage_tracking/testing",
143133
"value/testing",
144134
"vector/testing",

crates/keybroker/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ cmd_util = { path = "../cmd_util" }
1616
common = { path = "../common" }
1717
derive_more = { workspace = true }
1818
errors = { path = "../errors" }
19-
headers = { workspace = true }
2019
hex = { workspace = true }
21-
http = { workspace = true }
2220
metrics = { path = "../metrics" }
2321
openidconnect = { workspace = true }
2422
pb = { path = "../pb" }
@@ -27,10 +25,8 @@ proptest-derive = { workspace = true }
2725
prost = { workspace = true }
2826
rand = { workspace = true }
2927
rsa = { workspace = true, optional = true }
30-
serde = { workspace = true }
3128
sodiumoxide = { workspace = true }
3229
sync_types = { package = "convex_sync_types", path = "../convex/sync_types" }
33-
tower-cookies = { workspace = true }
3430

3531
[dev-dependencies]
3632
common = { path = "../common", features = ["testing"] }

0 commit comments

Comments
 (0)