mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-01 20:31:12 +00:00
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:
parent
ba14f69676
commit
acbee166c0
19 changed files with 0 additions and 134 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
|
||||
|
|
|
|||
|
|
@ -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" }
|
||||
|
|
|
|||
|
|
@ -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"] }
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
|
|
|
|||
|
|
@ -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" }
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
|
|
|
|||
|
|
@ -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" }
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
|
||||
|
|
|
|||
|
|
@ -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" }
|
||||
|
|
|
|||
|
|
@ -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 = []
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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" }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue