Skip to content

Commit 9007d49

Browse files
Nutomicdessalines
andauthored
Remove unused deps (LemmyNet#4111)
* Remove unused deps * Adding cargo-machete to woodpecker. --------- Co-authored-by: Dessalines <tyhou13@gmx.com>
1 parent c11e944 commit 9007d49

File tree

11 files changed

+19
-61
lines changed

11 files changed

+19
-61
lines changed

.woodpecker.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ steps:
6565
# need make existing toolchain available
6666
- cargo +nightly fmt -- --check
6767

68+
cargo_machete:
69+
group: format
70+
image: rustlang/rust:nightly
71+
commands:
72+
- wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz
73+
- tar -xvf cargo-binstall-x86_64-unknown-linux-musl.tgz
74+
- cp cargo-binstall /usr/local/cargo/bin
75+
- cargo binstall -y cargo-machete
76+
- cargo machete
77+
6878
restore-cache:
6979
image: meltwater/drone-cache:v1
7080
pull: true

Cargo.lock

Lines changed: 0 additions & 36 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 & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ lemmy_federate = { version = "0.19.0-rc.3", path = "crates/federate" }
142142
activitypub_federation = { workspace = true }
143143
diesel = { workspace = true }
144144
diesel-async = { workspace = true }
145-
serde = { workspace = true }
146145
actix-web = { workspace = true }
147146
tracing = { workspace = true }
148147
tracing-actix-web = { workspace = true }
@@ -154,7 +153,6 @@ reqwest = { workspace = true }
154153
reqwest-middleware = { workspace = true }
155154
reqwest-tracing = { workspace = true }
156155
clokwerk = { workspace = true }
157-
doku = { workspace = true }
158156
serde_json = { workspace = true }
159157
tracing-opentelemetry = { workspace = true, optional = true }
160158
opentelemetry = { workspace = true, optional = true }
@@ -163,13 +161,8 @@ opentelemetry-otlp = { version = "0.12.0", optional = true }
163161
pict-rs = { version = "0.4.5", optional = true }
164162
tokio.workspace = true
165163
actix-cors = "0.6.4"
166-
rustls = { workspace = true }
167164
futures-util = { workspace = true }
168-
tokio-postgres = { workspace = true }
169-
tokio-postgres-rustls = { workspace = true }
170165
chrono = { workspace = true }
171166
prometheus = { version = "0.13.3", features = ["process"] }
172-
actix-web-prom = { version = "0.6.0" }
173167
serial_test = { workspace = true }
174168
clap = { version = "4.4.7", features = ["derive"] }
175-
actix-web-httpauth = "0.8.1"

crates/api/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ lemmy_db_views_actor = { workspace = true, features = ["full"] }
2222
lemmy_api_common = { workspace = true, features = ["full"] }
2323
activitypub_federation = { workspace = true }
2424
bcrypt = { workspace = true }
25-
serde = { workspace = true }
2625
actix-web = { workspace = true }
2726
base64 = { workspace = true }
28-
uuid = { workspace = true }
29-
async-trait = { workspace = true }
3027
captcha = { workspace = true }
3128
anyhow = { workspace = true }
3229
tracing = { workspace = true }

crates/api_common/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ jsonwebtoken = { version = "8.3.0", optional = true }
7070
getrandom = { version = "0.2.10", features = ["js"] }
7171
enum-map = { workspace = true }
7272

73+
[package.metadata.cargo-machete]
74+
ignored = ["getrandom"]
75+
7376
[dev-dependencies]
7477
serial_test = { workspace = true }
7578
reqwest-middleware = { workspace = true }

crates/api_crud/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,8 @@ lemmy_db_views_actor = { workspace = true, features = ["full"] }
1616
lemmy_api_common = { workspace = true, features = ["full"] }
1717
activitypub_federation = { workspace = true }
1818
bcrypt = { workspace = true }
19-
serde = { workspace = true }
2019
actix-web = { workspace = true }
2120
tracing = { workspace = true }
2221
url = { workspace = true }
23-
async-trait = { workspace = true }
2422
webmention = "0.5.0"
25-
chrono = { workspace = true }
2623
uuid = { workspace = true }

crates/db_schema/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,6 @@ uuid = { workspace = true, features = ["v4"] }
7676

7777
[dev-dependencies]
7878
serial_test = { workspace = true }
79+
80+
[package.metadata.cargo-machete]
81+
ignored = ["strum"]

crates/db_views_actor/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ strum_macros = { workspace = true }
3535
[dev-dependencies]
3636
serial_test = { workspace = true }
3737
tokio = { workspace = true }
38+
39+
[package.metadata.cargo-machete]
40+
ignored = ["strum"]

crates/federate/Cargo.toml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,7 @@ diesel-async = { workspace = true, features = ["deadpool", "postgres"] }
2626
once_cell.workspace = true
2727
reqwest.workspace = true
2828
serde_json.workspace = true
29-
serde.workspace = true
3029
tokio = { workspace = true, features = ["full"] }
3130
tracing.workspace = true
32-
33-
async-trait = "0.1.74"
34-
bytes = "1.5.0"
35-
enum_delegate = "0.2.0"
3631
moka = { version = "0.11.3", features = ["future"] }
37-
openssl = "0.10.57"
38-
reqwest-middleware = "0.2.4"
39-
reqwest-tracing = "0.4.6"
4032
tokio-util = "0.7.9"
41-
tracing-subscriber = "0.3.17"

crates/routes/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ reqwest = { workspace = true, features = ["stream"] }
2626
reqwest-middleware = { workspace = true }
2727
serde = { workspace = true }
2828
url = { workspace = true }
29-
strum = { workspace = true }
3029
once_cell = { workspace = true }
3130
tracing = { workspace = true }
3231
tokio = { workspace = true }

crates/utils/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ full = ["ts-rs"]
1818

1919
[dependencies]
2020
regex = { workspace = true }
21-
chrono = { workspace = true }
2221
tracing = { workspace = true }
2322
tracing-error = { workspace = true }
2423
itertools = { workspace = true }
@@ -37,7 +36,6 @@ http = { workspace = true }
3736
doku = { workspace = true, features = ["url-2"] }
3837
uuid = { workspace = true, features = ["serde", "v4"] }
3938
rosetta-i18n = { workspace = true }
40-
typed-builder = { workspace = true }
4139
percent-encoding = { workspace = true }
4240
tokio = { workspace = true }
4341
openssl = "0.10.57"

0 commit comments

Comments
 (0)