Remove unused dependencies (#2543)

## Summary

I tried out `cargo shear` to see if there are any unused dependencies
that `cargo udeps` isn't reporting. It turned out, there are a few. This
PR removes those dependencies.

## Test Plan

`cargo build`
This commit is contained in:
Micha Reiser 2024-03-19 18:10:10 +01:00 committed by GitHub
parent ba14f69676
commit acbee166c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 0 additions and 134 deletions

66
Cargo.lock generated
View file

@ -963,8 +963,6 @@ version = "0.0.1"
dependencies = [
"anyhow",
"cache-key",
"chrono",
"data-encoding",
"distribution-filename",
"fs-err",
"itertools 0.12.1",
@ -977,12 +975,10 @@ dependencies = [
"rustc-hash",
"serde",
"serde_json",
"sha2",
"thiserror",
"tracing",
"url",
"urlencoding",
"uv-auth",
"uv-fs",
"uv-git",
"uv-normalize",
@ -1769,8 +1765,6 @@ dependencies = [
"tempfile",
"thiserror",
"tracing",
"tracing-subscriber",
"url",
"uv-fs",
"uv-normalize",
"walkdir",
@ -2713,8 +2707,6 @@ name = "pypi-types"
version = "0.0.1"
dependencies = [
"chrono",
"indoc",
"insta",
"mailparse",
"once_cell",
"pep440_rs",
@ -2722,9 +2714,6 @@ dependencies = [
"regex",
"rkyv",
"serde",
"serde_json",
"tempfile",
"test-case",
"thiserror",
"tracing",
"url",
@ -2943,16 +2932,12 @@ dependencies = [
"indoc",
"insta",
"itertools 0.12.1",
"once_cell",
"pep440_rs",
"pep508_rs",
"regex",
"reqwest",
"serde",
"serde_json",
"tempfile",
"test-case",
"thiserror",
"tokio",
"tracing",
"unscanny",
@ -4328,13 +4313,10 @@ dependencies = [
"clap_complete_command",
"console",
"ctrlc",
"distribution-filename",
"distribution-types",
"dunce",
"filetime",
"flate2",
"fs-err",
"futures",
"indexmap 2.2.5",
"indicatif",
"indoc",
@ -4344,11 +4326,9 @@ dependencies = [
"miette",
"mimalloc",
"owo-colors 4.0.0",
"pep440_rs",
"pep508_rs",
"platform-tags",
"predicates",
"pubgrub",
"pypi-types",
"pyproject-toml",
"regex",
@ -4370,21 +4350,17 @@ dependencies = [
"unicode-width",
"url",
"uv-auth",
"uv-build",
"uv-cache",
"uv-client",
"uv-dispatch",
"uv-distribution",
"uv-fs",
"uv-installer",
"uv-interpreter",
"uv-normalize",
"uv-resolver",
"uv-traits",
"uv-version",
"uv-virtualenv",
"uv-warnings",
"which",
]
[[package]]
@ -4420,8 +4396,6 @@ dependencies = [
"once_cell",
"pep440_rs",
"pep508_rs",
"pypi-types",
"pyproject-toml",
"regex",
"rustc-hash",
"serde",
@ -4448,10 +4422,8 @@ dependencies = [
"distribution-types",
"fs-err",
"nanoid",
"pypi-types",
"serde",
"tempfile",
"tracing",
"url",
"uv-fs",
"uv-normalize",
@ -4493,7 +4465,6 @@ dependencies = [
"rustls-native-certs",
"serde",
"serde_json",
"sha2",
"sys-info",
"task-local-extensions",
"tempfile",
@ -4507,7 +4478,6 @@ dependencies = [
"uv-auth",
"uv-cache",
"uv-fs",
"uv-interpreter",
"uv-normalize",
"uv-version",
"uv-warnings",
@ -4536,20 +4506,17 @@ dependencies = [
"petgraph",
"platform-tags",
"poloto",
"pypi-types",
"resvg",
"rustc-hash",
"serde",
"serde_json",
"tagu",
"tempfile",
"tikv-jemallocator",
"tokio",
"tracing",
"tracing-durations-export",
"tracing-indicatif",
"tracing-subscriber",
"url",
"uv-build",
"uv-cache",
"uv-client",
@ -4560,9 +4527,7 @@ dependencies = [
"uv-normalize",
"uv-resolver",
"uv-traits",
"uv-virtualenv",
"walkdir",
"which",
]
[[package]]
@ -4571,25 +4536,18 @@ version = "0.0.1"
dependencies = [
"anyhow",
"distribution-types",
"fs-err",
"futures",
"itertools 0.12.1",
"pep508_rs",
"platform-tags",
"pypi-types",
"rustc-hash",
"tempfile",
"tokio",
"tracing",
"uv-build",
"uv-cache",
"uv-client",
"uv-distribution",
"uv-installer",
"uv-interpreter",
"uv-resolver",
"uv-traits",
"uv-virtualenv",
]
[[package]]
@ -4634,7 +4592,6 @@ version = "0.0.1"
dependencies = [
"async-compression",
"async_zip",
"flate2",
"fs-err",
"futures",
"rayon",
@ -4675,13 +4632,10 @@ dependencies = [
"fs-err",
"git2",
"glob",
"hex",
"hmac",
"home",
"once_cell",
"rand",
"reqwest",
"serde",
"sha1",
"tokio",
"tracing",
@ -4695,12 +4649,10 @@ version = "0.0.1"
dependencies = [
"anyhow",
"async-channel",
"distribution-filename",
"distribution-types",
"fs-err",
"futures",
"install-wheel-rs",
"once-map",
"pep440_rs",
"pep508_rs",
"platform-tags",
@ -4721,7 +4673,6 @@ dependencies = [
"uv-distribution",
"uv-extract",
"uv-fs",
"uv-git",
"uv-interpreter",
"uv-normalize",
"uv-traits",
@ -4753,7 +4704,6 @@ dependencies = [
"serde_json",
"tempfile",
"thiserror",
"tokio",
"tracing",
"uv-cache",
"uv-fs",
@ -4783,11 +4733,9 @@ dependencies = [
"distribution-filename",
"distribution-types",
"either",
"fs-err",
"futures",
"indexmap 2.2.5",
"insta",
"install-wheel-rs",
"itertools 0.12.1",
"once-map",
"once_cell",
@ -4799,28 +4747,20 @@ dependencies = [
"pubgrub",
"pypi-types",
"requirements-txt",
"reqwest",
"rkyv",
"rustc-hash",
"serde_json",
"sha2",
"tempfile",
"thiserror",
"tokio",
"tokio-stream",
"tokio-util",
"tracing",
"url",
"uv-cache",
"uv-client",
"uv-distribution",
"uv-git",
"uv-interpreter",
"uv-normalize",
"uv-traits",
"uv-virtualenv",
"uv-warnings",
"zip",
]
[[package]]
@ -4828,13 +4768,11 @@ name = "uv-traits"
version = "0.0.1"
dependencies = [
"anyhow",
"clap",
"distribution-types",
"once-map",
"pep508_rs",
"serde",
"serde_json",
"tokio",
"uv-cache",
"uv-interpreter",
"uv-normalize",
@ -4856,16 +4794,12 @@ dependencies = [
"pathdiff",
"platform-tags",
"pypi-types",
"serde",
"serde_json",
"tempfile",
"thiserror",
"tracing",
"tracing-subscriber",
"uv-cache",
"uv-fs",
"uv-interpreter",
"which",
]
[[package]]

View file

@ -49,7 +49,6 @@ fs2 = { version = "0.4.3" }
futures = { version = "0.3.30" }
git2 = { version = "0.18.1" }
glob = { version = "0.3.1" }
goblin = { version = "0.8.0" }
hex = { version = "0.4.3" }
hmac = { version = "0.12.1" }
home = { version = "0.5.9" }
@ -91,7 +90,6 @@ serde_json = { version = "1.0.114" }
sha1 = { version = "0.10.6" }
sha2 = { version = "0.10.8" }
sys-info = { version = "0.9.1" }
target-lexicon = { version = "0.12.14" }
task-local-extensions = { version = "0.1.4" }
tempfile = { version = "3.9.0" }
textwrap = { version = "0.16.1" }

View file

@ -18,15 +18,12 @@ distribution-filename = { path = "../distribution-filename", features = ["serde"
pep440_rs = { path = "../pep440-rs" }
pep508_rs = { path = "../pep508-rs" }
platform-tags = { path = "../platform-tags" }
uv-auth = { path = "../uv-auth" }
uv-fs = { path = "../uv-fs" }
uv-git = { path = "../uv-git", features = ["vendored-openssl"] }
uv-normalize = { path = "../uv-normalize" }
pypi-types = { path = "../pypi-types" }
anyhow = { workspace = true }
chrono = { workspace = true }
data-encoding = { workspace = true }
fs-err = { workspace = true }
itertools = { workspace = true }
once_cell = { workspace = true }
@ -34,7 +31,6 @@ rkyv = { workspace = true, features = ["strict", "validation"] }
rustc-hash = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
sha2 = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
url = { workspace = true }

View file

@ -45,8 +45,6 @@ sha2 = { workspace = true }
tempfile = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true, optional = true }
url = { workspace = true }
walkdir = { workspace = true }
zip = { workspace = true }

View file

@ -28,8 +28,3 @@ tracing = { workspace = true }
url = { workspace = true }
[dev-dependencies]
indoc = { version = "2.0.4" }
insta = { version = "1.36.1" }
serde_json = { version = "1.0.114" }
tempfile = { version = "3.9.0" }
test-case = { version = "3.3.1" }

View file

@ -13,7 +13,6 @@ license = { workspace = true }
workspace = true
[dependencies]
pep440_rs = { path = "../pep440-rs", features = ["rkyv", "serde"] }
pep508_rs = { path = "../pep508-rs", features = ["rkyv", "serde", "non-pep508-extensions"] }
uv-client = { path = "../uv-client" }
uv-fs = { path = "../uv-fs" }
@ -22,11 +21,9 @@ uv-warnings = { path = "../uv-warnings" }
async-recursion = { workspace = true }
fs-err = { workspace = true }
once_cell = { workspace = true }
regex = { workspace = true }
reqwest = { workspace = true, optional = true }
serde = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
unscanny = { workspace = true }
url = { workspace = true }
@ -37,7 +34,6 @@ assert_fs = { version = "1.1.1" }
indoc = { version = "2.0.4" }
insta = { version = "1.36.1", features = ["filters"] }
itertools = { version = "0.12.1" }
serde_json = { version = "1.0.114" }
tempfile = { version = "3.9.0" }
test-case = { version = "3.3.1" }
tokio = { version = "1.35.1", features = ["macros"] }

View file

@ -17,7 +17,6 @@ workspace = true
distribution-types = { path = "../distribution-types" }
pep440_rs = { path = "../pep440-rs" }
pep508_rs = { path = "../pep508-rs" }
pypi-types = { path = "../pypi-types" }
uv-fs = { path = "../uv-fs" }
uv-interpreter = { path = "../uv-interpreter" }
uv-traits = { path = "../uv-traits", features = ["serde"] }
@ -28,7 +27,6 @@ fs-err = { workspace = true }
indoc = { workspace = true }
itertools = { workspace = true }
once_cell = { workspace = true }
pyproject-toml = { workspace = true }
regex = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }

View file

@ -18,7 +18,6 @@ cache-key = { path = "../cache-key" }
distribution-types = { path = "../distribution-types" }
uv-fs = { path = "../uv-fs" }
uv-normalize = { path = "../uv-normalize" }
pypi-types = { path = "../pypi-types" }
cachedir = { workspace = true }
clap = { workspace = true, features = ["derive", "env"], optional = true }
@ -27,6 +26,5 @@ fs-err = { workspace = true, features = ["tokio"] }
nanoid = { workspace = true }
serde = { workspace = true, features = ["derive"] }
tempfile = { workspace = true }
tracing = { workspace = true }
url = { workspace = true }
walkdir = { workspace = true }

View file

@ -14,7 +14,6 @@ platform-tags = { path = "../platform-tags" }
uv-auth = { path = "../uv-auth" }
uv-cache = { path = "../uv-cache" }
uv-fs = { path = "../uv-fs", features = ["tokio"] }
uv-interpreter = { path = "../uv-interpreter" }
uv-normalize = { path = "../uv-normalize" }
uv-version = { path = "../uv-version" }
uv-warnings = { path = "../uv-warnings" }
@ -38,7 +37,6 @@ rmp-serde = { workspace = true }
rustc-hash = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
sha2 = { workspace = true }
sys-info = { workspace = true }
task-local-extensions = { workspace = true }
tempfile = { workspace = true }

View file

@ -22,7 +22,6 @@ install-wheel-rs = { path = "../install-wheel-rs" }
pep440_rs = { path = "../pep440-rs" }
pep508_rs = { path = "../pep508-rs" }
platform-tags = { path = "../platform-tags" }
pypi-types = { path = "../pypi-types" }
uv-build = { path = "../uv-build" }
uv-cache = { path = "../uv-cache", features = ["clap"] }
uv-client = { path = "../uv-client" }
@ -33,7 +32,6 @@ uv-interpreter = { path = "../uv-interpreter" }
uv-normalize = { path = "../uv-normalize" }
uv-resolver = { path = "../uv-resolver" }
uv-traits = { path = "../uv-traits" }
uv-virtualenv = { path = "../uv-virtualenv" }
# Any dependencies that are exclusively used in `uv-dev` should be listed as non-workspace
# dependencies, to ensure that we're forced to think twice before including them in other crates.
@ -53,15 +51,12 @@ rustc-hash = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
tagu = { version = "0.1.6" }
tempfile = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }
tracing-durations-export = { workspace = true, features = ["plot"] }
tracing-indicatif = { workspace = true }
tracing-subscriber = { workspace = true }
url = { workspace = true }
walkdir = { workspace = true }
which = { workspace = true }
[target.'cfg(target_os = "windows")'.dependencies]
mimalloc = { version = "0.1.39" }

View file

@ -16,23 +16,16 @@ workspace = true
[dependencies]
distribution-types = { path = "../distribution-types" }
pep508_rs = { path = "../pep508-rs" }
platform-tags = { path = "../platform-tags" }
pypi-types = { path = "../pypi-types" }
uv-build = { path = "../uv-build" }
uv-cache = { path = "../uv-cache" }
uv-client = { path = "../uv-client" }
uv-distribution = { path = "../uv-distribution" }
uv-installer = { path = "../uv-installer" }
uv-interpreter = { path = "../uv-interpreter" }
uv-resolver = { path = "../uv-resolver" }
uv-traits = { path = "../uv-traits" }
uv-virtualenv = { path = "../uv-virtualenv" }
anyhow = { workspace = true }
fs-err = { workspace = true }
futures = { workspace = true }
itertools = { workspace = true }
rustc-hash = { workspace = true }
tempfile = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }

View file

@ -15,7 +15,6 @@ workspace = true
[dependencies]
async-compression = { workspace = true, features = ["gzip"] }
async_zip = { workspace = true, features = ["tokio"] }
flate2 = { workspace = true }
fs-err = { workspace = true, features = ["tokio"] }
futures = { workspace = true }
rayon = { workspace = true }

View file

@ -21,13 +21,10 @@ base64 = { workspace = true }
cargo-util = { workspace = true }
git2 = { workspace = true }
glob = { workspace = true }
hex = { workspace = true }
hmac = { workspace = true }
home = { workspace = true }
once_cell = { workspace = true }
rand = { workspace = true }
reqwest = { workspace = true, features = ["blocking"] }
serde = { workspace = true }
sha1 = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }

View file

@ -13,10 +13,8 @@ license = { workspace = true }
workspace = true
[dependencies]
distribution-filename = { path = "../distribution-filename" }
distribution-types = { path = "../distribution-types" }
install-wheel-rs = { path = "../install-wheel-rs", default-features = false }
once-map = { path = "../once-map" }
pep440_rs = { path = "../pep440-rs" }
pep508_rs = { path = "../pep508-rs" }
platform-tags = { path = "../platform-tags" }
@ -27,7 +25,6 @@ uv-client = { path = "../uv-client" }
uv-distribution = { path = "../uv-distribution" }
uv-extract = { path = "../uv-extract" }
uv-fs = { path = "../uv-fs" }
uv-git = { path = "../uv-git", features = ["vendored-openssl"] }
uv-interpreter = { path = "../uv-interpreter" }
uv-normalize = { path = "../uv-normalize" }
uv-traits = { path = "../uv-traits" }

View file

@ -32,7 +32,6 @@ serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
tempfile = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }
which = { workspace = true }

View file

@ -16,7 +16,6 @@ workspace = true
cache-key = { path = "../cache-key" }
distribution-filename = { path = "../distribution-filename", features = ["serde"] }
distribution-types = { path = "../distribution-types" }
install-wheel-rs = { path = "../install-wheel-rs" }
once-map = { path = "../once-map" }
pep440_rs = { path = "../pep440-rs", features = ["pubgrub"] }
pep508_rs = { path = "../pep508-rs" }
@ -26,7 +25,6 @@ requirements-txt = { path = "../requirements-txt" }
uv-cache = { path = "../uv-cache" }
uv-client = { path = "../uv-client" }
uv-distribution = { path = "../uv-distribution" }
uv-git = { path = "../uv-git", features = ["vendored-openssl"] }
uv-interpreter = { path = "../uv-interpreter" }
uv-normalize = { path = "../uv-normalize" }
uv-traits = { path = "../uv-traits" }
@ -39,7 +37,6 @@ clap = { workspace = true, features = ["derive"], optional = true }
dashmap = { workspace = true }
derivative = { workspace = true }
either = { workspace = true }
fs-err = { workspace = true, features = ["tokio"] }
futures = { workspace = true }
indexmap = { workspace = true }
itertools = { workspace = true }
@ -47,22 +44,15 @@ once_cell = { workspace = true }
owo-colors = { workspace = true }
petgraph = { workspace = true }
pubgrub = { workspace = true }
reqwest = { workspace = true }
rkyv = { workspace = true, features = ["strict", "validation"] }
rustc-hash = { workspace = true }
serde_json = { workspace = true }
sha2 = { workspace = true }
tempfile = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true, features = ["macros"] }
tokio-stream = { workspace = true }
tokio-util = { workspace = true, features = ["compat"] }
tracing = { workspace = true }
url = { workspace = true }
zip = { workspace = true }
[dev-dependencies]
uv-virtualenv = { path = "../uv-virtualenv" }
uv-interpreter = { path = "../uv-interpreter" }
once_cell = { version = "1.19.0" }

View file

@ -13,7 +13,6 @@ license = { workspace = true }
workspace = true
[dependencies]
clap = { workspace = true, optional = true }
distribution-types = { path = "../distribution-types" }
once-map = { path = "../once-map" }
pep508_rs = { path = "../pep508-rs" }
@ -24,7 +23,6 @@ uv-normalize = { path = "../uv-normalize" }
anyhow = { workspace = true }
serde = { workspace = true, optional = true }
serde_json = { workspace = true, optional = true }
tokio = { workspace = true, features = ["sync"] }
[features]
default = []

View file

@ -33,13 +33,9 @@ clap = { workspace = true, features = ["derive"], optional = true }
directories = { workspace = true }
fs-err = { workspace = true }
pathdiff = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
tempfile = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true, optional = true }
which = { workspace = true }
[features]
cli = ["clap", "tracing-subscriber"]

View file

@ -14,27 +14,22 @@ default-run = "uv"
workspace = true
[dependencies]
distribution-filename = { path = "../distribution-filename" }
distribution-types = { path = "../distribution-types" }
install-wheel-rs = { path = "../install-wheel-rs", features = ["clap"], default-features = false }
pep440_rs = { path = "../pep440-rs" }
pep508_rs = { path = "../pep508-rs" }
platform-tags = { path = "../platform-tags" }
pypi-types = { path = "../pypi-types" }
requirements-txt = { path = "../requirements-txt", features = ["reqwest"] }
uv-auth = { path = "../uv-auth", features = ["clap"] }
uv-build = { path = "../uv-build" }
uv-cache = { path = "../uv-cache", features = ["clap"] }
uv-client = { path = "../uv-client" }
uv-dispatch = { path = "../uv-dispatch" }
uv-distribution = { path = "../uv-distribution" }
uv-fs = { path = "../uv-fs" }
uv-installer = { path = "../uv-installer" }
uv-interpreter = { path = "../uv-interpreter" }
uv-normalize = { path = "../uv-normalize" }
uv-resolver = { path = "../uv-resolver", features = ["clap"] }
uv-traits = { path = "../uv-traits" }
uv-version = { path = "../uv-version" }
uv-virtualenv = { path = "../uv-virtualenv" }
uv-warnings = { path = "../uv-warnings" }
@ -46,16 +41,13 @@ clap = { workspace = true, features = ["derive", "string"] }
clap_complete_command = { workspace = true }
console = { workspace = true }
ctrlc = { workspace = true }
dunce = { workspace = true }
flate2 = { workspace = true, default-features = false }
fs-err = { workspace = true, features = ["tokio"] }
futures = { workspace = true }
indexmap = { workspace = true }
indicatif = { workspace = true }
itertools = { workspace = true }
miette = { workspace = true, features = ["fancy"] }
owo-colors = { workspace = true }
pubgrub = { workspace = true }
pyproject-toml = { workspace = true }
rustc-hash = { workspace = true }
serde = { workspace = true }
@ -71,7 +63,6 @@ tracing-subscriber = { workspace = true, features = ["json"] }
tracing-tree = { workspace = true }
unicode-width = { workspace = true }
url = { workspace = true }
which = { workspace = true }
[target.'cfg(target_os = "windows")'.dependencies]
mimalloc = { version = "0.1.39" }