mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-21 14:17:08 +00:00
Adding cargo shear (#5139)
* Adding cargo shear (fail check) * Running cargo shear. * Fixing another missing. * Removing cargo-machete in favor of cargo-shear
This commit is contained in:
parent
aef4403412
commit
d6d01a3b62
|
@ -73,12 +73,12 @@ steps:
|
|||
when:
|
||||
- event: pull_request
|
||||
|
||||
cargo_machete:
|
||||
cargo_shear:
|
||||
image: *rust_nightly_image
|
||||
commands:
|
||||
- *install_binstall
|
||||
- cargo binstall -y cargo-machete
|
||||
- cargo machete
|
||||
- cargo binstall -y cargo-shear
|
||||
- cargo shear
|
||||
when:
|
||||
- event: pull_request
|
||||
|
||||
|
|
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -2570,7 +2570,6 @@ dependencies = [
|
|||
"futures",
|
||||
"html2md",
|
||||
"html2text",
|
||||
"http 1.1.0",
|
||||
"itertools 0.13.0",
|
||||
"lemmy_api_common",
|
||||
"lemmy_db_schema",
|
||||
|
@ -2815,7 +2814,6 @@ dependencies = [
|
|||
"markdown-it-sup",
|
||||
"pretty_assertions",
|
||||
"regex",
|
||||
"reqwest 0.12.8",
|
||||
"reqwest-middleware",
|
||||
"rosetta-build",
|
||||
"rosetta-i18n",
|
||||
|
|
|
@ -72,7 +72,7 @@ jsonwebtoken = { version = "9.3.0", optional = true }
|
|||
# necessary for wasmt compilation
|
||||
getrandom = { version = "0.2.15", features = ["js"] }
|
||||
|
||||
[package.metadata.cargo-machete]
|
||||
[package.metadata.cargo-shear]
|
||||
ignored = ["getrandom"]
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
|
@ -34,5 +34,5 @@ serde_json = { workspace = true }
|
|||
serde = { workspace = true }
|
||||
serde_with = { workspace = true }
|
||||
|
||||
[package.metadata.cargo-machete]
|
||||
[package.metadata.cargo-shear]
|
||||
ignored = ["futures"]
|
||||
|
|
|
@ -33,7 +33,6 @@ tokio = { workspace = true }
|
|||
tracing = { workspace = true }
|
||||
strum = { workspace = true }
|
||||
url = { workspace = true }
|
||||
http = { workspace = true }
|
||||
futures = { workspace = true }
|
||||
itertools = { workspace = true }
|
||||
uuid = { workspace = true }
|
||||
|
|
|
@ -82,6 +82,3 @@ derive-new.workspace = true
|
|||
[dev-dependencies]
|
||||
serial_test = { workspace = true }
|
||||
pretty_assertions = { workspace = true }
|
||||
|
||||
[package.metadata.cargo-machete]
|
||||
ignored = ["strum"]
|
||||
|
|
|
@ -48,6 +48,3 @@ pretty_assertions = { workspace = true }
|
|||
url.workspace = true
|
||||
lemmy_db_views.workspace = true
|
||||
lemmy_utils.workspace = true
|
||||
|
||||
[package.metadata.cargo-machete]
|
||||
ignored = ["strum"]
|
||||
|
|
|
@ -49,6 +49,9 @@ full = [
|
|||
"dep:markdown-it",
|
||||
]
|
||||
|
||||
[package.metadata.cargo-shear]
|
||||
ignored = ["http"]
|
||||
|
||||
[dependencies]
|
||||
regex = { workspace = true, optional = true }
|
||||
tracing = { workspace = true, optional = true }
|
||||
|
@ -88,7 +91,6 @@ markdown-it-sup = "1.0.0"
|
|||
markdown-it-ruby = "1.0.0"
|
||||
|
||||
[dev-dependencies]
|
||||
reqwest = { workspace = true }
|
||||
pretty_assertions = { workspace = true }
|
||||
|
||||
[build-dependencies]
|
||||
|
|
Loading…
Reference in a new issue