Skip to content

Commit 2c4f5ff

Browse files
authored
Merge pull request #1239 from AppFlowy-IO/remove-unnecessary-dependency-machete
chore: remove unnecessary package as reported by cargo machete
2 parents cc38c3f + d9d511b commit 2c4f5ff

File tree

15 files changed

+15
-408
lines changed

15 files changed

+15
-408
lines changed

Cargo.lock

Lines changed: 3 additions & 337 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 & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ actix-rt = "2.9.0"
1717
actix-web-actors = { version = "4.3" }
1818
actix-service = "2.0.2"
1919
actix-identity = "0.6.0"
20-
actix-router = "0.5.2"
2120
actix-session = { version = "0.8", features = ["redis-rs-tls-session"] }
2221
actix-multipart = { version = "0.7.2", features = ["derive"] }
23-
openssl = { version = "0.10.62", features = ["vendored"] }
2422
zstd.workspace = true
2523

2624
# serde
@@ -39,13 +37,10 @@ tokio = { workspace = true, features = [
3937
tokio-stream.workspace = true
4038
tokio-util = { version = "0.7.10", features = ["io"] }
4139
futures-util = { workspace = true, features = ["std", "io"] }
42-
once_cell = "1.19.0"
4340
chrono.workspace = true
44-
derive_more = { version = "0.99" }
4541
secrecy.workspace = true
4642
rand = { version = "0.8", features = ["std_rng"] }
4743
anyhow.workspace = true
48-
thiserror = "1.0.56"
4944
reqwest = { workspace = true, features = [
5045
"json",
5146
"rustls-tls",
@@ -57,13 +52,11 @@ lazy_static.workspace = true
5752
fancy-regex = "0.11.0"
5853
bytes.workspace = true
5954
validator.workspace = true
60-
rcgen = { version = "0.10.0", features = ["pem", "x509-parser"] }
6155
mime = "0.3.17"
6256
aws-sdk-s3 = { version = "1.63.0", features = [
6357
"behavior-version-latest",
6458
"rt-tokio",
6559
] }
66-
aws-config = { version = "1.5.10", features = ["behavior-version-latest"] }
6760
redis = { workspace = true, features = [
6861
"json",
6962
"tokio-comp",
@@ -77,7 +70,6 @@ tracing-subscriber = { version = "0.3.19", features = [
7770
"json",
7871
"tracing-log",
7972
] }
80-
tracing-bunyan-formatter = "0.3.9"
8173
sqlx = { workspace = true, default-features = false, features = [
8274
"runtime-tokio-rustls",
8375
"macros",
@@ -92,22 +84,18 @@ itertools = "0.11"
9284
uuid.workspace = true
9385
tokio-tungstenite = { version = "0.26.1", features = ["native-tls"] }
9486
dotenvy.workspace = true
95-
url = "2.5.0"
9687
brotli.workspace = true
9788
dashmap.workspace = true
9889
async-stream.workspace = true
9990
futures.workspace = true
10091
semver = "1.0.22"
101-
governor = { version = "0.6.3" }
10292
tonic.workspace = true
10393
prost.workspace = true
10494
tonic-proto.workspace = true
10595
appflowy-collaborate = { path = "services/appflowy-collaborate" }
106-
percent-encoding = "2.3.1"
10796

10897
# ai
10998
appflowy-ai-client = { workspace = true, features = ["dto", "client-api"] }
110-
pgvector = { workspace = true, features = ["sqlx"] }
11199

112100
collab = { workspace = true, features = ["lock_timeout"] }
113101
collab-document = { workspace = true }
@@ -140,9 +128,6 @@ collab-stream.workspace = true
140128
yrs.workspace = true
141129

142130
tonic-build = "0.12.3"
143-
log = "0.4.20"
144-
lettre = { version = "0.11.7", features = ["tokio1", "tokio1-native-tls"] }
145-
handlebars = "5.1.2"
146131
pin-project.workspace = true
147132
byteorder = "1.5.0"
148133
sha2 = "0.10.8"
@@ -160,7 +145,6 @@ indexer.workspace = true
160145

161146
[dev-dependencies]
162147
flate2 = "1.0"
163-
once_cell = "1.19.0"
164148
tempfile = "3.9.0"
165149
assert-json-diff = "2.0.2"
166150
scraper = "0.17.1"

libs/client-api-test/Cargo.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,18 @@ collab = { workspace = true }
1717
collab-document.workspace = true
1818
collab-user.workspace = true
1919
client-api = { path = "../client-api", features = ["test_util"] }
20-
once_cell = "1.19.0"
2120
tempfile = "3.9.0"
2221
assert-json-diff = "2.0.2"
23-
scraper = "0.17.1"
24-
opener = "0.6.1"
25-
image = "0.23.14"
2622
database-entity.workspace = true
2723
collab-entity.workspace = true
2824
shared-entity.workspace = true
2925
collab-database.workspace = true
30-
tracing-subscriber = { version = "0.3.18", features = ["registry", "env-filter", "ansi", "json"] }
26+
tracing-subscriber = { version = "0.3.18", features = [
27+
"registry",
28+
"env-filter",
29+
"ansi",
30+
"json",
31+
] }
3132
uuid.workspace = true
3233
lazy_static = "1.4.0"
3334
dotenvy = "0.15.7"

libs/client-api/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ crate-type = ["cdylib", "rlib"]
1010
[dependencies]
1111
reqwest = { workspace = true, features = ["multipart"] }
1212
anyhow.workspace = true
13-
serde_repr = "0.1.18"
1413
gotrue = { path = "../gotrue" }
1514
tracing = { version = "0.1" }
1615
thiserror = "1.0.56"
@@ -22,9 +21,9 @@ parking_lot = "0.12.1"
2221
brotli = { version = "3.4.0", optional = true }
2322
async-trait.workspace = true
2423
prost = "0.13.3"
25-
bincode = "1.3.3"
2624
url = "2.5.0"
2725
mime = "0.3.17"
26+
tokio = { workspace = true, features = ["sync", "macros"] }
2827
tokio-stream = { version = "0.1.14" }
2928
chrono = "0.4"
3029
client-websocket = { workspace = true, features = ["native-tls"] }

libs/collab-rt-entity/Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ crate-type = ["cdylib", "rlib"]
1111
collab = { workspace = true }
1212
collab-entity = { workspace = true }
1313
serde.workspace = true
14-
serde_json.workspace = true
1514
bytes = { version = "1.5", features = ["serde"] }
1615
anyhow.workspace = true
1716
actix = { version = "0.13", optional = true }
@@ -20,9 +19,7 @@ tokio-tungstenite = { version = "0.20.1", optional = true }
2019
prost.workspace = true
2120
database-entity.workspace = true
2221
yrs.workspace = true
23-
thiserror = "1.0.56"
2422
collab-rt-protocol.workspace = true
25-
client-websocket.workspace = true
2623
serde_repr = "0.1"
2724
brotli = { version = "3.4.0", optional = true }
2825
chrono = "0.4"
@@ -34,4 +31,4 @@ prost-build = "0.12.3"
3431
[features]
3532
actix_message = ["actix"]
3633
tungstenite = ["tokio-tungstenite"]
37-
rt_compress = ["brotli"]
34+
rt_compress = ["brotli"]

libs/database-entity/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@ validator = { workspace = true, features = ["validator_derive", "derive"] }
1515
chrono = { version = "0.4", features = ["serde"] }
1616
uuid = { workspace = true, features = ["serde", "v4"] }
1717
thiserror = "1.0.56"
18-
anyhow.workspace = true
1918
tracing = "0.1"
2019
serde_repr = "0.1.18"
21-
app-error = { workspace = true }
2220
bincode = "1.3.3"
23-
appflowy-ai-client = { workspace = true, features = ["dto"] }
2421
bytes.workspace = true
2522
prost.workspace = true
2623
infra.workspace = true

libs/database/Cargo.toml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ edition = "2021"
88
[dependencies]
99
collab = { workspace = true }
1010
collab-entity = { workspace = true }
11-
collab-rt-entity = { workspace = true }
12-
validator = { workspace = true, features = ["validator_derive", "derive"] }
1311
database-entity.workspace = true
1412
shared-entity.workspace = true
1513
app-error = { workspace = true, features = ["sqlx_error", "validation_error"] }
@@ -20,7 +18,6 @@ anyhow.workspace = true
2018
serde.workspace = true
2119
serde_json.workspace = true
2220
tonic-proto.workspace = true
23-
zstd.workspace = true
2421

2522
sqlx = { workspace = true, default-features = false, features = [
2623
"postgres",
@@ -34,21 +31,12 @@ pgvector = { workspace = true, features = ["sqlx"] }
3431
tracing = { version = "0.1.40" }
3532
uuid = { workspace = true, features = ["serde", "v4"] }
3633
chrono = { version = "0.4", features = ["serde"] }
37-
redis = { workspace = true, features = [
38-
"aio",
39-
"tokio-comp",
40-
"connection-manager",
41-
] }
4234
futures-util = "0.3.30"
43-
bytes.workspace = true
4435
aws-sdk-s3 = { version = "1.36.0", features = [
4536
"behavior-version-latest",
4637
"rt-tokio",
4738
], optional = true }
48-
sha2 = "0.10.8"
49-
base64 = "0.21.7"
5039
rust_decimal = "1.36.0"
51-
bincode.workspace = true
5240
itertools = "0.12.1"
5341

5442
[features]

libs/gotrue-entity/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ edition = "2021"
88
[dependencies]
99
serde.workspace = true
1010
serde_json.workspace = true
11-
anyhow.workspace = true
1211
lazy_static = "1.4.0"
1312
jsonwebtoken = "8.3.0"
1413
app-error = { workspace = true, features = ["gotrue_error"] }
15-
chrono = "0.4.33"

libs/gotrue/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ crate-type = ["cdylib", "rlib"]
1010
[dependencies]
1111
serde.workspace = true
1212
serde_json.workspace = true
13-
futures-util = "0.3.30"
1413
anyhow.workspace = true
1514
reqwest = { workspace = true, features = ["json", "rustls-tls", "cookies"] }
16-
tokio = { workspace = true, features = ["sync", "macros"] }
1715
infra = { path = "../infra", features = ["request_util"] }
1816
gotrue-entity = { path = "../gotrue-entity" }
1917
tracing = "0.1"
2018

2119
[target.'cfg(target_arch = "wasm32")'.dependencies]
22-
getrandom = { version = "0.2", features = ["js"] }
20+
getrandom = { version = "0.2", features = ["js"] }

libs/indexer/Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ serde_json.workspace = true
2727
anyhow.workspace = true
2828
infra.workspace = true
2929
prometheus-client = "0.22.3"
30-
bytes.workspace = true
31-
dashmap = "6.1.0"
3230
chrono = "0.4.39"
3331
ureq = "2.12.1"
3432
serde.workspace = true
@@ -37,6 +35,5 @@ redis = { workspace = true, features = [
3735
"tokio-comp",
3836
"connection-manager",
3937
] }
40-
tokio-util = "0.7.12"
4138
secrecy = { workspace = true, features = ["serde"] }
42-
reqwest.workspace = true
39+
reqwest.workspace = true

0 commit comments

Comments
 (0)