2023-10-04 15:33:47 -04:00
|
|
|
[workspace]
|
|
|
|
|
members = ["crates/*"]
|
2024-01-26 14:54:11 +01:00
|
|
|
exclude = [
|
2024-02-23 19:56:34 +01:00
|
|
|
"scripts",
|
|
|
|
|
# Needs nightly
|
2024-03-06 06:18:11 +02:00
|
|
|
"crates/uv-trampoline",
|
2024-09-25 17:41:40 +02:00
|
|
|
# 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",
|
2024-01-26 14:54:11 +01:00
|
|
|
]
|
2023-10-04 15:33:47 -04:00
|
|
|
resolver = "2"
|
|
|
|
|
|
|
|
|
|
[workspace.package]
|
2025-05-18 19:38:43 -04:00
|
|
|
edition = "2024"
|
2025-06-27 10:27:45 -04:00
|
|
|
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]
|
2024-03-20 21:16:02 +01:00
|
|
|
uv-auth = { path = "crates/uv-auth" }
|
2024-10-07 10:38:40 +02:00
|
|
|
uv-build-backend = { path = "crates/uv-build-backend" }
|
2024-09-25 20:17:54 +02:00
|
|
|
uv-build-frontend = { path = "crates/uv-build-frontend" }
|
2024-03-20 21:16:02 +01:00
|
|
|
uv-cache = { path = "crates/uv-cache" }
|
2024-09-09 16:19:15 -04:00
|
|
|
uv-cache-info = { path = "crates/uv-cache-info" }
|
2024-10-01 20:15:32 -04:00
|
|
|
uv-cache-key = { path = "crates/uv-cache-key" }
|
2024-06-24 13:16:22 +03:00
|
|
|
uv-cli = { path = "crates/uv-cli" }
|
2024-03-20 21:16:02 +01:00
|
|
|
uv-client = { path = "crates/uv-client" }
|
2024-04-16 13:56:47 -04:00
|
|
|
uv-configuration = { path = "crates/uv-configuration" }
|
2024-09-30 13:00:31 -04:00
|
|
|
uv-console = { path = "crates/uv-console" }
|
2024-10-22 11:33:25 -05:00
|
|
|
uv-dirs = { path = "crates/uv-dirs" }
|
2024-03-20 21:16:02 +01:00
|
|
|
uv-dispatch = { path = "crates/uv-dispatch" }
|
|
|
|
|
uv-distribution = { path = "crates/uv-distribution" }
|
2024-10-01 20:15:32 -04:00
|
|
|
uv-distribution-filename = { path = "crates/uv-distribution-filename" }
|
|
|
|
|
uv-distribution-types = { path = "crates/uv-distribution-types" }
|
2024-03-20 21:16:02 +01:00
|
|
|
uv-extract = { path = "crates/uv-extract" }
|
2024-11-20 16:11:24 +01:00
|
|
|
uv-fs = { path = "crates/uv-fs", features = ["serde", "tokio"] }
|
2024-03-20 21:16:02 +01:00
|
|
|
uv-git = { path = "crates/uv-git" }
|
2025-02-17 10:37:55 +01:00
|
|
|
uv-git-types = { path = "crates/uv-git-types" }
|
2024-11-14 14:14:58 +01:00
|
|
|
uv-globfilter = { path = "crates/uv-globfilter" }
|
2024-10-01 20:15:32 -04:00
|
|
|
uv-install-wheel = { path = "crates/uv-install-wheel", default-features = false }
|
2024-03-20 21:16:02 +01:00
|
|
|
uv-installer = { path = "crates/uv-installer" }
|
2024-06-13 21:53:27 -07:00
|
|
|
uv-macros = { path = "crates/uv-macros" }
|
2024-09-10 15:31:01 +02:00
|
|
|
uv-metadata = { path = "crates/uv-metadata" }
|
2024-03-20 21:16:02 +01:00
|
|
|
uv-normalize = { path = "crates/uv-normalize" }
|
2024-10-01 20:15:32 -04:00
|
|
|
uv-once-map = { path = "crates/uv-once-map" }
|
2024-07-15 15:48:40 -04:00
|
|
|
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"] }
|
2024-10-01 20:15:32 -04:00
|
|
|
uv-pep508 = { path = "crates/uv-pep508", features = ["non-pep508-extensions"] }
|
|
|
|
|
uv-platform-tags = { path = "crates/uv-platform-tags" }
|
2024-09-24 17:33:06 +02:00
|
|
|
uv-publish = { path = "crates/uv-publish" }
|
2024-10-01 20:15:32 -04:00
|
|
|
uv-pypi-types = { path = "crates/uv-pypi-types" }
|
2024-07-12 21:12:58 -04:00
|
|
|
uv-python = { path = "crates/uv-python" }
|
2025-05-12 17:58:25 +01:00
|
|
|
uv-redacted = { path = "crates/uv-redacted" }
|
2024-03-21 09:52:47 -04:00
|
|
|
uv-requirements = { path = "crates/uv-requirements" }
|
2024-10-01 20:15:32 -04:00
|
|
|
uv-requirements-txt = { path = "crates/uv-requirements-txt" }
|
2024-03-20 21:16:02 +01:00
|
|
|
uv-resolver = { path = "crates/uv-resolver" }
|
2024-07-01 08:20:24 -04:00
|
|
|
uv-scripts = { path = "crates/uv-scripts" }
|
2024-06-13 18:26:20 -07:00
|
|
|
uv-settings = { path = "crates/uv-settings" }
|
2024-07-12 21:12:58 -04:00
|
|
|
uv-shell = { path = "crates/uv-shell" }
|
2025-01-12 15:23:18 -05:00
|
|
|
uv-small-str = { path = "crates/uv-small-str" }
|
2024-05-26 23:54:49 -04:00
|
|
|
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" }
|
2025-03-19 07:37:08 -07:00
|
|
|
uv-torch = { path = "crates/uv-torch" }
|
2025-01-12 15:23:18 -05:00
|
|
|
uv-trampoline-builder = { path = "crates/uv-trampoline-builder" }
|
2024-04-16 13:56:47 -04:00
|
|
|
uv-types = { path = "crates/uv-types" }
|
2024-03-20 21:16:02 +01:00
|
|
|
uv-version = { path = "crates/uv-version" }
|
|
|
|
|
uv-virtualenv = { path = "crates/uv-virtualenv" }
|
|
|
|
|
uv-warnings = { path = "crates/uv-warnings" }
|
2024-07-19 22:15:32 -04:00
|
|
|
uv-workspace = { path = "crates/uv-workspace" }
|
2024-03-20 21:16:02 +01:00
|
|
|
|
2024-09-17 06:39:58 -04:00
|
|
|
anstream = { version = "0.6.15" }
|
|
|
|
|
anyhow = { version = "1.0.89" }
|
2025-01-10 14:46:36 -05:00
|
|
|
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" }
|
2025-05-04 20:08:19 +02:00
|
|
|
async_zip = { git = "https://github.com/charliermarsh/rs-async-zip", rev = "c909fda63fcafe4af496a07bfda28a5aae97e58d", features = ["bzip2", "deflate", "lzma", "tokio", "xz", "zstd"] }
|
2024-12-24 08:09:13 -05:00
|
|
|
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" }
|
2024-10-16 10:34:29 -07:00
|
|
|
bitflags = { version = "2.6.0" }
|
2025-04-29 18:39:41 -04:00
|
|
|
blake2 = { version = "0.10.6" }
|
2025-01-03 12:18:43 -05:00
|
|
|
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" }
|
2025-03-03 10:30:48 -05:00
|
|
|
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" }
|
2024-11-04 14:26:05 -05:00
|
|
|
dotenvy = { version = "0.15.7" }
|
2024-09-17 06:39:58 -04:00
|
|
|
dunce = { version = "1.0.5" }
|
|
|
|
|
either = { version = "1.13.0" }
|
2024-03-07 12:35:54 -05:00
|
|
|
encoding_rs_io = { version = "0.1.7" }
|
2025-03-31 09:07:33 -04:00
|
|
|
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" }
|
2024-09-12 15:06:05 -04:00
|
|
|
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"] }
|
2024-11-13 12:47:38 -05:00
|
|
|
hashbrown = { version = "0.15.1" }
|
2023-11-01 06:21:44 -07:00
|
|
|
hex = { version = "0.4.3" }
|
2024-07-12 18:09:34 -04:00
|
|
|
home = { version = "0.5.9" }
|
2023-12-24 16:35:45 -05:00
|
|
|
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" }
|
2025-01-05 21:27:14 -05:00
|
|
|
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" }
|
2025-02-10 02:40:08 +00:00
|
|
|
mailparse = { version = "0.16.0" }
|
2024-04-10 15:09:03 -04:00
|
|
|
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"] }
|
2025-04-07 20:55:00 +03:00
|
|
|
once_cell = { version = "1.20.2" }
|
2024-09-17 06:39:58 -04:00
|
|
|
owo-colors = { version = "4.1.0" }
|
2024-05-23 23:02:42 -04:00
|
|
|
path-slash = { version = "0.2.1" }
|
2024-02-27 21:10:29 -05:00
|
|
|
pathdiff = { version = "0.2.1" }
|
2025-01-31 16:29:46 -05:00
|
|
|
percent-encoding = { version = "2.3.1" }
|
2025-04-27 22:25:47 -04:00
|
|
|
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" }
|
2024-11-14 14:14:58 +01:00
|
|
|
regex-automata = { version = "0.4.8", default-features = false, features = ["dfa-build", "dfa-search", "perf", "std", "syntax"] }
|
2025-06-11 22:42:47 -04:00
|
|
|
reqwest = { version = "=0.12.15", default-features = false, features = ["json", "gzip", "deflate", "zstd", "stream", "rustls-tls", "rustls-tls-native-roots", "socks", "multipart", "http2", "blocking"] }
|
2025-06-16 12:14:00 +02:00
|
|
|
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" }
|
2024-10-21 14:43:07 -04:00
|
|
|
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"] }
|
2024-01-25 09:27:49 -08:00
|
|
|
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" }
|
2024-11-07 21:57:38 -05:00
|
|
|
self-replace = { version = "1.5.0" }
|
2024-11-20 16:11:24 +01:00
|
|
|
serde = { version = "1.0.210", features = ["derive", "rc"] }
|
2024-09-30 19:40:21 -04:00
|
|
|
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" }
|
2024-08-09 13:40:02 -04:00
|
|
|
smallvec = { version = "1.13.2" }
|
2024-10-07 10:38:40 +02:00
|
|
|
spdx = { version = "0.10.6" }
|
2024-09-17 06:39:58 -04:00
|
|
|
syn = { version = "2.0.77" }
|
2024-03-18 10:46:58 +00:00
|
|
|
sys-info = { version = "0.9.1" }
|
2024-11-07 14:29:54 +01:00
|
|
|
tar = { version = "0.4.43" }
|
2024-12-10 20:34:07 -05:00
|
|
|
target-lexicon = { version = "0.13.0" }
|
2024-11-29 18:05:10 +01:00
|
|
|
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" }
|
2024-11-15 13:07:51 +00:00
|
|
|
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"] }
|
2024-04-10 12:15:27 +02:00
|
|
|
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" }
|
2024-07-14 20:39:56 -04:00
|
|
|
tracing-tree = { version = "0.4.0" }
|
2025-04-08 19:33:00 +02:00
|
|
|
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" }
|
2025-01-13 18:06:34 -05:00
|
|
|
windows-result = { version = "0.3.0" }
|
2025-03-03 15:46:00 +01:00
|
|
|
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" }
|
2025-06-02 14:39:31 +02:00
|
|
|
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
|
|
|
|
2023-11-22 15:10:27 +00: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"
|
2023-11-22 15:10:27 +00:00
|
|
|
match_same_arms = "allow"
|
|
|
|
|
missing_errors_doc = "allow"
|
|
|
|
|
missing_panics_doc = "allow"
|
|
|
|
|
module_name_repetitions = "allow"
|
|
|
|
|
must_use_candidate = "allow"
|
|
|
|
|
similar_names = "allow"
|
2025-06-17 06:18:54 -04:00
|
|
|
struct_excessive_bools = "allow"
|
2024-06-30 15:30:38 -04:00
|
|
|
too_many_arguments = "allow"
|
2024-09-08 11:09:49 -04:00
|
|
|
too_many_lines = "allow"
|
|
|
|
|
used_underscore_binding = "allow"
|
2023-11-22 15:10:27 +00:00
|
|
|
# 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"
|
2023-11-22 15:10:27 +00:00
|
|
|
|
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
|
|
|
|
2024-03-25 21:57:26 +01:00
|
|
|
[profile.fast-build]
|
|
|
|
|
inherits = "dev"
|
|
|
|
|
debug = 0
|
|
|
|
|
strip = "debuginfo"
|
|
|
|
|
|
2025-03-06 20:27:20 +01:00
|
|
|
# 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"
|
|
|
|
|
|
2025-06-16 12:14:00 +02:00
|
|
|
[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" }
|