Files
uv/Cargo.toml
T

303 lines
12 KiB
TOML
Raw Normal View History

2023-10-04 15:33:47 -04:00
[workspace]
members = ["crates/*"]
exclude = [
2024-02-23 19:56:34 +01:00
"scripts",
# Needs nightly
"crates/uv-trampoline",
# Only used to pull in features, allocators, etc. — we specifically don't want them
# to be part of a workspace-wide cargo check, cargo clippy, etc.
"crates/uv-performance-memory-allocator",
]
2023-10-04 15:33:47 -04:00
resolver = "2"
[workspace.package]
2025-05-18 19:38:43 -04:00
edition = "2024"
rust-version = "1.86"
2024-02-15 11:19:46 -06:00
homepage = "https://pypi.org/project/uv/"
documentation = "https://pypi.org/project/uv/"
repository = "https://github.com/astral-sh/uv"
authors = ["uv"]
2023-10-04 15:33:47 -04:00
license = "MIT OR Apache-2.0"
2023-10-06 15:49:41 -04:00
[workspace.dependencies]
uv-auth = { path = "crates/uv-auth" }
uv-build-backend = { path = "crates/uv-build-backend" }
uv-build-frontend = { path = "crates/uv-build-frontend" }
uv-cache = { path = "crates/uv-cache" }
2024-09-09 16:19:15 -04:00
uv-cache-info = { path = "crates/uv-cache-info" }
uv-cache-key = { path = "crates/uv-cache-key" }
2024-06-24 13:16:22 +03:00
uv-cli = { path = "crates/uv-cli" }
uv-client = { path = "crates/uv-client" }
uv-configuration = { path = "crates/uv-configuration" }
uv-console = { path = "crates/uv-console" }
uv-dirs = { path = "crates/uv-dirs" }
uv-dispatch = { path = "crates/uv-dispatch" }
uv-distribution = { path = "crates/uv-distribution" }
uv-distribution-filename = { path = "crates/uv-distribution-filename" }
uv-distribution-types = { path = "crates/uv-distribution-types" }
uv-extract = { path = "crates/uv-extract" }
2024-11-20 16:11:24 +01:00
uv-fs = { path = "crates/uv-fs", features = ["serde", "tokio"] }
uv-git = { path = "crates/uv-git" }
2025-02-17 10:37:55 +01:00
uv-git-types = { path = "crates/uv-git-types" }
uv-globfilter = { path = "crates/uv-globfilter" }
uv-install-wheel = { path = "crates/uv-install-wheel", default-features = false }
uv-installer = { path = "crates/uv-installer" }
2024-06-13 21:53:27 -07:00
uv-macros = { path = "crates/uv-macros" }
uv-metadata = { path = "crates/uv-metadata" }
uv-normalize = { path = "crates/uv-normalize" }
uv-once-map = { path = "crates/uv-once-map" }
uv-options-metadata = { path = "crates/uv-options-metadata" }
2024-10-29 20:15:18 +01:00
uv-pep440 = { path = "crates/uv-pep440", features = ["tracing", "rkyv", "version-ranges"] }
uv-pep508 = { path = "crates/uv-pep508", features = ["non-pep508-extensions"] }
uv-platform-tags = { path = "crates/uv-platform-tags" }
uv-publish = { path = "crates/uv-publish" }
uv-pypi-types = { path = "crates/uv-pypi-types" }
uv-python = { path = "crates/uv-python" }
uv-redacted = { path = "crates/uv-redacted" }
uv-requirements = { path = "crates/uv-requirements" }
uv-requirements-txt = { path = "crates/uv-requirements-txt" }
uv-resolver = { path = "crates/uv-resolver" }
2024-07-01 08:20:24 -04:00
uv-scripts = { path = "crates/uv-scripts" }
uv-settings = { path = "crates/uv-settings" }
uv-shell = { path = "crates/uv-shell" }
2025-01-12 15:23:18 -05:00
uv-small-str = { path = "crates/uv-small-str" }
uv-state = { path = "crates/uv-state" }
2024-10-14 21:48:13 +00:00
uv-static = { path = "crates/uv-static" }
2024-06-26 11:24:29 -04:00
uv-tool = { path = "crates/uv-tool" }
uv-torch = { path = "crates/uv-torch" }
2025-01-12 15:23:18 -05:00
uv-trampoline-builder = { path = "crates/uv-trampoline-builder" }
uv-types = { path = "crates/uv-types" }
uv-version = { path = "crates/uv-version" }
uv-virtualenv = { path = "crates/uv-virtualenv" }
uv-warnings = { path = "crates/uv-warnings" }
uv-workspace = { path = "crates/uv-workspace" }
2024-09-17 06:39:58 -04:00
anstream = { version = "0.6.15" }
anyhow = { version = "1.0.89" }
arcstr = { version = "1.2.0" }
2025-02-09 14:14:47 -05:00
astral-tokio-tar = { version = "0.5.1" }
2024-09-17 06:39:58 -04:00
async-channel = { version = "2.3.1" }
2024-11-20 16:11:24 +01:00
async-compression = { version = "0.4.12", features = ["bzip2", "gzip", "xz", "zstd"] }
2024-09-17 06:39:58 -04:00
async-trait = { version = "0.1.82" }
2024-11-12 14:57:47 +01:00
async_http_range_reader = { version = "0.9.1" }
async_zip = { git = "https://github.com/charliermarsh/rs-async-zip", rev = "c909fda63fcafe4af496a07bfda28a5aae97e58d", features = ["bzip2", "deflate", "lzma", "tokio", "xz", "zstd"] }
axoupdater = { version = "0.9.0", default-features = false }
2025-01-09 16:01:23 -05:00
backon = { version = "1.3.0" }
2024-09-17 06:39:58 -04:00
base64 = { version = "0.22.1" }
bitflags = { version = "2.6.0" }
2025-04-29 18:39:41 -04:00
blake2 = { version = "0.10.6" }
boxcar = { version = "0.2.5" }
2024-09-18 13:44:57 -04:00
bytecheck = { version = "0.8.0" }
2024-09-17 06:39:58 -04:00
cargo-util = { version = "0.2.14" }
2024-11-20 16:11:24 +01:00
clap = { version = "4.5.17", features = ["derive", "env", "string", "wrap_help"] }
2024-09-17 06:39:58 -04:00
clap_complete_command = { version = "0.6.1" }
configparser = { version = "3.1.0" }
console = { version = "0.15.11", default-features = false }
2023-10-06 21:43:55 -04:00
csv = { version = "1.3.0" }
2024-09-17 06:39:58 -04:00
ctrlc = { version = "3.4.5" }
dashmap = { version = "6.1.0" }
data-encoding = { version = "2.6.0" }
dotenvy = { version = "0.15.7" }
2024-09-17 06:39:58 -04:00
dunce = { version = "1.0.5" }
either = { version = "1.13.0" }
encoding_rs_io = { version = "0.1.7" }
etcetera = { version = "0.10.0" }
2025-03-03 09:29:31 -08:00
flate2 = { version = "1.0.33", default-features = false, features = ["zlib-rs"] }
2024-11-20 16:11:24 +01:00
fs-err = { version = "3.0.0", features = ["tokio"] }
2023-10-06 21:43:55 -04:00
fs2 = { version = "0.4.3" }
2024-01-05 17:40:12 +01:00
futures = { version = "0.3.30" }
2023-11-02 08:14:55 -07:00
glob = { version = "0.3.1" }
2024-11-07 14:29:54 +01:00
globset = { version = "0.4.15" }
globwalk = { version = "0.9.1" }
2025-06-01 21:57:28 -04:00
goblin = { version = "0.10.0", default-features = false, features = ["std", "elf32", "elf64", "endian_fd"] }
hashbrown = { version = "0.15.1" }
2023-11-01 06:21:44 -07:00
hex = { version = "0.4.3" }
home = { version = "0.5.9" }
html-escape = { version = "0.2.13" }
2024-04-10 11:20:44 -04:00
http = { version = "1.1.0" }
2024-09-17 06:39:58 -04:00
indexmap = { version = "2.5.0" }
indicatif = { version = "0.17.8" }
indoc = { version = "2.0.5" }
itertools = { version = "0.14.0" }
2025-02-16 21:49:21 -05:00
jiff = { version = "0.2.0", features = ["serde"] }
2024-09-17 06:39:58 -04:00
junction = { version = "1.2.0" }
mailparse = { version = "0.16.0" }
md-5 = { version = "0.10.6" }
2024-07-01 08:20:24 -04:00
memchr = { version = "2.7.4" }
2024-11-20 16:11:24 +01:00
miette = { version = "7.2.0", features = ["fancy-no-backtrace"] }
2024-01-24 00:05:14 -05:00
nanoid = { version = "0.4.0" }
2025-06-02 08:05:01 +00:00
nix = { version = "0.30.0", features = ["signal"] }
once_cell = { version = "1.20.2" }
2024-09-17 06:39:58 -04:00
owo-colors = { version = "4.1.0" }
path-slash = { version = "0.2.1" }
pathdiff = { version = "0.2.1" }
percent-encoding = { version = "2.3.1" }
petgraph = { version = "0.8.0" }
2024-07-15 15:24:08 -04:00
proc-macro2 = { version = "1.0.86" }
2024-11-12 03:48:21 +01:00
procfs = { version = "0.17.0", default-features = false, features = ["flate2"] }
2025-05-23 15:51:43 +02:00
pubgrub = { git = "https://github.com/astral-sh/pubgrub", rev = "06ec5a5f59ffaeb6cf5079c6cb184467da06c9db" }
2024-09-17 06:39:58 -04:00
quote = { version = "1.0.37" }
rayon = { version = "1.10.0" }
2025-05-28 13:28:28 +02:00
ref-cast = { version = "1.0.24" }
2024-09-17 06:39:58 -04:00
reflink-copy = { version = "0.1.19" }
regex = { version = "1.10.6" }
regex-automata = { version = "0.4.8", default-features = false, features = ["dfa-build", "dfa-search", "perf", "std", "syntax"] }
reqwest = { version = "=0.12.15", default-features = false, features = ["json", "gzip", "deflate", "zstd", "stream", "rustls-tls", "rustls-tls-native-roots", "socks", "multipart", "http2", "blocking"] }
reqwest-middleware = { git = "https://github.com/astral-sh/reqwest-middleware", rev = "ad8b9d332d1773fde8b4cd008486de5973e0a3f8", features = ["multipart"] }
reqwest-retry = { git = "https://github.com/astral-sh/reqwest-middleware", rev = "ad8b9d332d1773fde8b4cd008486de5973e0a3f8" }
2024-09-18 13:44:57 -04:00
rkyv = { version = "0.8.8", features = ["bytecheck"] }
2024-09-17 06:39:58 -04:00
rmp-serde = { version = "1.3.0" }
rust-netrc = { version = "0.1.2" }
2024-06-24 01:13:05 +00:00
rustc-hash = { version = "2.0.0" }
2025-04-28 08:49:51 -04:00
rustix = { version = "1.0.0", default-features = false, features = ["fs", "std"] }
same-file = { version = "1.0.6" }
2025-06-25 04:43:31 +09:00
schemars = { version = "1.0.0", features = ["url2"] }
2023-10-08 14:45:08 -04:00
seahash = { version = "4.1.0" }
self-replace = { version = "1.5.0" }
2024-11-20 16:11:24 +01:00
serde = { version = "1.0.210", features = ["derive", "rc"] }
serde-untagged = { version = "0.1.6" }
2024-09-17 06:39:58 -04:00
serde_json = { version = "1.0.128" }
2023-10-06 21:43:55 -04:00
sha2 = { version = "0.10.8" }
smallvec = { version = "1.13.2" }
spdx = { version = "0.10.6" }
2024-09-17 06:39:58 -04:00
syn = { version = "2.0.77" }
sys-info = { version = "0.9.1" }
2024-11-07 14:29:54 +01:00
tar = { version = "0.4.43" }
target-lexicon = { version = "0.13.0" }
tempfile = { version = "3.14.0" }
2024-02-23 14:01:05 -06:00
textwrap = { version = "0.16.1" }
2024-11-15 09:54:16 -06:00
thiserror = { version = "2.0.0" }
tl = { git = "https://github.com/astral-sh/tl.git", rev = "6e25b2ee2513d75385101a8ff9f591ef51f314ec" }
2024-11-15 10:06:54 +01:00
tokio = { version = "1.40.0", features = ["fs", "io-util", "macros", "process", "rt", "signal", "sync"] }
2024-09-17 06:39:58 -04:00
tokio-stream = { version = "0.1.16" }
2024-11-20 16:11:24 +01:00
tokio-util = { version = "0.7.12", features = ["compat", "io"] }
2024-09-17 06:39:58 -04:00
toml = { version = "0.8.19" }
toml_edit = { version = "0.22.21", features = ["serde"] }
2023-11-06 15:14:47 +01:00
tracing = { version = "0.1.40" }
2024-08-23 13:50:08 +02:00
tracing-durations-export = { version = "0.3.0", features = ["plot"] }
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "json", "registry"] }
2025-04-19 11:11:41 +02:00
tracing-test = { version = "0.2.5" }
tracing-tree = { version = "0.4.0" }
unicode-width = { version = "0.2.0" }
2023-10-12 13:09:00 -04:00
unscanny = { version = "0.1.0" }
2024-11-20 16:11:24 +01:00
url = { version = "2.5.2", features = ["serde"] }
2025-05-23 15:51:43 +02:00
version-ranges = { git = "https://github.com/astral-sh/pubgrub", rev = "06ec5a5f59ffaeb6cf5079c6cb184467da06c9db" }
2024-03-11 19:37:08 -04:00
walkdir = { version = "2.5.0" }
2025-06-16 09:37:38 +02:00
which = { version = "8.0.0", features = ["regex"] }
2025-06-02 17:53:03 +02:00
windows = { version = "0.59.0", features = ["Win32_Storage_FileSystem"] }
windows-core = { version = "0.59.0" }
2025-02-26 16:33:31 +01:00
windows-registry = { version = "0.5.0" }
windows-result = { version = "0.3.0" }
windows-sys = { version = "0.59.0", features = ["Win32_Foundation", "Win32_Security", "Win32_Storage_FileSystem", "Win32_System_Ioctl", "Win32_System_IO", "Win32_System_Registry"] }
2025-06-24 09:04:55 -04:00
wiremock = { version = "0.6.4" }
2024-07-29 17:46:43 -04:00
xz2 = { version = "0.1.7" }
zip = { version = "2.2.3", default-features = false, features = ["deflate", "zstd", "bzip2", "lzma", "xz"] }
2023-10-09 16:48:55 -04:00
2024-05-12 21:43:45 -04:00
[workspace.metadata.cargo-shear]
2024-07-29 17:46:43 -04:00
ignored = ["flate2", "xz2"]
2024-05-12 21:43:45 -04:00
[workspace.lints.rust]
unsafe_code = "warn"
unreachable_pub = "warn"
[workspace.lints.clippy]
pedantic = { level = "warn", priority = -2 }
# Allowed pedantic lints
char_lit_as_u8 = "allow"
collapsible_else_if = "allow"
collapsible_if = "allow"
implicit_hasher = "allow"
2024-05-09 22:17:01 +02:00
map_unwrap_or = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
too_many_arguments = "allow"
2024-09-08 11:09:49 -04:00
too_many_lines = "allow"
used_underscore_binding = "allow"
# Disallowed restriction lints
print_stdout = "warn"
print_stderr = "warn"
dbg_macro = "warn"
empty_drop = "warn"
empty_structs_with_brackets = "warn"
exit = "warn"
get_unwrap = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
rest_pat_in_fully_bound_structs = "warn"
2024-11-26 14:57:26 -05:00
if_not_else = "allow"
2025-01-11 22:19:33 -05:00
# Diagnostics are not actionable: Enable once https://github.com/rust-lang/rust-clippy/issues/13774 is resolved.
large_stack_arrays = "allow"
2024-08-03 13:11:02 +02:00
[profile.release]
strip = true
2024-08-09 09:22:12 -04:00
lto = "fat"
2024-08-03 13:11:02 +02:00
2024-08-09 09:22:12 -04:00
# This profile is meant to mimic the `release` profile as closely as
# possible, but using settings that are more beneficial for iterative
# development. That is, the `release` profile is intended for actually
# building the release, where as `profiling` is meant for building `uv`
# for running benchmarks.
#
# The main differences here are to avoid stripping debug information
# and disabling lto. This does result in a mismatch between our release
# configuration and our benchmarking configuration, which is unfortunate.
# But compile times with `lto = true` are completely untenable:
#
# $ cargo b --profile profiling -p uv
# Compiling uv-cli v0.0.1 (/home/andrew/astral/uv/crates/uv-cli)
# Compiling uv v0.2.34 (/home/andrew/astral/uv/crates/uv)
# Finished `profiling` profile [optimized + debuginfo] target(s) in 3m 47s
#
# Using `lto = "thin"` brings a massive improvement, but it's still slow:
#
# $ cargo b --profile profiling -p uv
# Compiling uv v0.2.34 (/home/andrew/astral/uv/crates/uv)
# Finished `profiling` profile [optimized + debuginfo] target(s) in 53.98s
#
# But with `lto = false`:
#
# $ cargo b --profile profiling -p uv
# Compiling uv v0.2.34 (/home/andrew/astral/uv/crates/uv)
# Finished `profiling` profile [optimized + debuginfo] target(s) in 30.09s
#
# We get more reasonable-ish compile times. At least, it's not enough
# time to get up and get a cup of coffee before it completes.
#
# This setup does risk that we are measuring something in benchmarks
# that we are shipping, but in order to make those two the same, we'd
# either need to make compile times way worse for development, or take
# a hit to binary size and a slight hit to runtime performance in our
# release builds.
2023-10-13 11:50:04 +02:00
[profile.profiling]
inherits = "release"
2024-08-03 13:11:02 +02:00
strip = false
2024-08-09 09:22:12 -04:00
debug = "full"
lto = false
2024-01-18 15:44:11 -05:00
[profile.fast-build]
inherits = "dev"
debug = 0
strip = "debuginfo"
# Profile to build a minimally sized binary for uv-build
[profile.minimal-size]
inherits = "release"
opt-level = "z"
# This will still show a panic message, we only skip the unwind
panic = "abort"
codegen-units = 1
2024-01-18 15:44:11 -05:00
# The profile that 'cargo dist' will build with.
[profile.dist]
inherits = "release"
[patch.crates-io]
reqwest-middleware = { git = "https://github.com/astral-sh/reqwest-middleware", rev = "ad8b9d332d1773fde8b4cd008486de5973e0a3f8" }
reqwest-retry = { git = "https://github.com/astral-sh/reqwest-middleware", rev = "ad8b9d332d1773fde8b4cd008486de5973e0a3f8" }