[workspace] members = ["crates/*"] exclude = [ "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", "crates/uv-performance-flate2-backend", ] resolver = "2" [workspace.package] edition = "2021" rust-version = "1.81" homepage = "https://pypi.org/project/uv/" documentation = "https://pypi.org/project/uv/" repository = "https://github.com/astral-sh/uv" authors = ["uv"] license = "MIT OR Apache-2.0" [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" } uv-cache-info = { path = "crates/uv-cache-info" } uv-cache-key = { path = "crates/uv-cache-key" } 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-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" } uv-fs = { path = "crates/uv-fs" } uv-git = { path = "crates/uv-git" } uv-install-wheel = { path = "crates/uv-install-wheel", default-features = false } uv-installer = { path = "crates/uv-installer" } 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" } uv-pep440 = { path = "crates/uv-pep440" } uv-pep508 = { path = "crates/uv-pep508", features = ["non-pep508-extensions"] } uv-platform-tags = { path = "crates/uv-platform-tags" } uv-pubgrub = { path = "crates/uv-pubgrub" } uv-publish = { path = "crates/uv-publish" } uv-pypi-types = { path = "crates/uv-pypi-types" } uv-python = { path = "crates/uv-python" } uv-requirements = { path = "crates/uv-requirements" } uv-requirements-txt = { path = "crates/uv-requirements-txt" } uv-resolver = { path = "crates/uv-resolver" } uv-scripts = { path = "crates/uv-scripts" } uv-settings = { path = "crates/uv-settings" } uv-shell = { path = "crates/uv-shell" } uv-state = { path = "crates/uv-state" } uv-tool = { path = "crates/uv-tool" } 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" } anstream = { version = "0.6.15" } anyhow = { version = "1.0.89" } async-channel = { version = "2.3.1" } async-compression = { version = "0.4.12" } async-trait = { version = "0.1.82" } async_http_range_reader = { version = "0.8.0" } async_zip = { git = "https://github.com/charliermarsh/rs-async-zip", rev = "011b24604fa7bc223daaad7712c0694bac8f0a87", features = ["deflate", "tokio"] } axoupdater = { version = "0.7.2", default-features = false } backoff = { version = "0.4.0" } base64 = { version = "0.22.1" } boxcar = { version = "0.2.5" } bytecheck = { version = "0.8.0" } cachedir = { version = "0.3.1" } cargo-util = { version = "0.2.14" } clap = { version = "4.5.17" } clap_complete_command = { version = "0.6.1" } configparser = { version = "3.1.0" } console = { version = "0.15.8", default-features = false } csv = { version = "1.3.0" } ctrlc = { version = "3.4.5" } dashmap = { version = "6.1.0" } data-encoding = { version = "2.6.0" } directories = { version = "5.0.1" } dirs-sys = { version = "0.4.1" } dunce = { version = "1.0.5" } either = { version = "1.13.0" } encoding_rs_io = { version = "0.1.7" } etcetera = { version = "0.8.0" } flate2 = { version = "1.0.33", default-features = false } fs-err = { version = "2.11.0" } fs2 = { version = "0.4.3" } futures = { version = "0.3.30" } glob = { version = "0.3.1" } globwalk = { version = "0.9.1" } goblin = { version = "0.8.2", default-features = false, features = ["std", "elf32", "elf64", "endian_fd"] } hex = { version = "0.4.3" } home = { version = "0.5.9" } html-escape = { version = "0.2.13" } http = { version = "1.1.0" } indexmap = { version = "2.5.0" } indicatif = { version = "0.17.8" } indoc = { version = "2.0.5" } itertools = { version = "0.13.0" } jiff = { version = "0.1.13", features = ["serde"] } junction = { version = "1.2.0" } krata-tokio-tar = { version = "0.4.2" } mailparse = { version = "0.15.0" } md-5 = { version = "0.10.6" } memchr = { version = "2.7.4" } miette = { version = "7.2.0" } nanoid = { version = "0.4.0" } owo-colors = { version = "4.1.0" } path-slash = { version = "0.2.1" } pathdiff = { version = "0.2.1" } petgraph = { version = "0.6.5" } platform-info = { version = "2.0.3" } proc-macro2 = { version = "1.0.86" } pubgrub = { git = "https://github.com/astral-sh/pubgrub", rev = "388685a8711092971930986644cfed152d1a1f6c" } quote = { version = "1.0.37" } rayon = { version = "1.10.0" } reflink-copy = { version = "0.1.19" } regex = { version = "1.10.6" } reqwest = { version = "0.12.7", default-features = false, features = ["json", "gzip", "stream", "rustls-tls", "rustls-tls-native-roots", "socks", "multipart"] } reqwest-middleware = { git = "https://github.com/astral-sh/reqwest-middleware", rev = "5e3eaf254b5bd481c75d2710eed055f95b756913", features = ["multipart"] } reqwest-retry = { git = "https://github.com/astral-sh/reqwest-middleware", rev = "5e3eaf254b5bd481c75d2710eed055f95b756913" } rkyv = { version = "0.8.8", features = ["bytecheck"] } rmp-serde = { version = "1.3.0" } rust-netrc = { version = "0.1.1" } rustc-hash = { version = "2.0.0" } rustix = { version = "0.38.37", default-features = false, features = ["fs", "std"] } same-file = { version = "1.0.6" } schemars = { version = "0.8.21", features = ["url"] } seahash = { version = "4.1.0" } serde = { version = "1.0.210", features = ["derive"] } serde-untagged = { version = "0.1.6" } serde_json = { version = "1.0.128" } sha2 = { version = "0.10.8" } smallvec = { version = "1.13.2" } spdx = { version = "0.10.6" } syn = { version = "2.0.77" } sys-info = { version = "0.9.1" } target-lexicon = { version = "0.12.16" } tempfile = { version = "3.12.0" } textwrap = { version = "0.16.1" } thiserror = { version = "1.0.63" } tl = { git = "https://github.com/charliermarsh/tl.git", rev = "6e25b2ee2513d75385101a8ff9f591ef51f314ec" } tokio = { version = "1.40.0", features = ["fs", "io-util", "macros", "process", "signal", "sync"] } tokio-stream = { version = "0.1.16" } tokio-util = { version = "0.7.12", features = ["compat"] } toml = { version = "0.8.19" } toml_edit = { version = "0.22.21", features = ["serde"] } tracing = { version = "0.1.40" } tracing-durations-export = { version = "0.3.0", features = ["plot"] } tracing-subscriber = { version = "0.3.18", features = ["env-filter", "json", "registry"] } tracing-tree = { version = "0.4.0" } unicode-width = { version = "0.1.13" } unscanny = { version = "0.1.0" } url = { version = "2.5.2" } urlencoding = { version = "2.1.3" } walkdir = { version = "2.5.0" } which = { version = "6.0.3", features = ["regex"] } windows-registry = { version = "0.2.0" } windows-result = { version = "0.2.0" } windows-sys = { version = "0.59.0", features = ["Win32_Foundation", "Win32_Security", "Win32_Storage_FileSystem", "Win32_System_Ioctl", "Win32_System_IO"] } winreg = { version = "0.52.0" } winsafe = { version = "0.0.22", features = ["kernel"] } wiremock = { version = "0.6.2" } xz2 = { version = "0.1.7" } zip = { version = "0.6.6", default-features = false, features = ["deflate"] } [workspace.metadata.cargo-shear] ignored = ["flate2", "xz2"] [patch.crates-io] reqwest-middleware = { git = "https://github.com/astral-sh/reqwest-middleware", rev = "5e3eaf254b5bd481c75d2710eed055f95b756913" } [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" 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" too_many_arguments = "allow" 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" [profile.release] strip = true lto = "fat" # This profile disables LTO and is used for ppc64le musl cross builds which fail otherwise [profile.release-no-lto] inherits = "release" lto = false # 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. [profile.profiling] inherits = "release" strip = false debug = "full" lto = false [profile.fast-build] inherits = "dev" debug = 0 strip = "debuginfo" # The profile that 'cargo dist' will build with. [profile.dist] inherits = "release" # Config for 'cargo dist' [workspace.metadata.dist] # The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax) cargo-dist-version = "0.22.1" # CI backends to support ci = "github" # The installers to generate for each app installers = ["shell", "powershell"] # The archive format to use for windows builds (defaults .zip) windows-archive = ".zip" # The archive format to use for non-windows builds (defaults .tar.xz) unix-archive = ".tar.gz" # Target platforms to build apps for (Rust target-triple syntax) targets = [ "aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "aarch64-unknown-linux-musl", "arm-unknown-linux-musleabihf", "armv7-unknown-linux-gnueabihf", "armv7-unknown-linux-musleabihf", "i686-pc-windows-msvc", "i686-unknown-linux-gnu", "i686-unknown-linux-musl", "powerpc64-unknown-linux-gnu", "powerpc64le-unknown-linux-gnu", "s390x-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl", ] # Whether to auto-include files like READMEs, LICENSEs, and CHANGELOGs (default true) auto-includes = false # Whether cargo-dist should create a Github Release or use an existing draft create-release = true # Which actions to run on pull requests pr-run-mode = "skip" # Whether CI should trigger releases with dispatches instead of tag pushes dispatch-releases = true # Which phase cargo-dist should use to create the GitHub release github-release = "announce" # Whether CI should include auto-generated code to build local artifacts build-local-artifacts = false # Local artifacts jobs to run in CI local-artifacts-jobs = ["./build-binaries", "./build-docker"] # Publish jobs to run in CI publish-jobs = ["./publish-pypi"] # Post-announce jobs to run in CI post-announce-jobs = ["./publish-docs"] # Custom permissions for GitHub Jobs github-custom-job-permissions = { "build-docker" = { packages = "write", contents = "read" } } # Whether to install an updater program install-updater = false # Path that installers should place binaries in install-path = "CARGO_HOME"