Files
uv/Cargo.toml
T

263 lines
9.5 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",
]
2023-10-04 15:33:47 -04:00
resolver = "2"
[workspace.package]
edition = "2021"
2024-03-27 10:41:27 -04:00
rust-version = "1.77"
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]
cache-key = { path = "crates/cache-key" }
distribution-filename = { path = "crates/distribution-filename" }
distribution-types = { path = "crates/distribution-types" }
2024-03-20 22:25:09 +01:00
install-wheel-rs = { path = "crates/install-wheel-rs", default-features = false }
once-map = { path = "crates/once-map" }
pep440_rs = { path = "crates/pep440-rs" }
pep508_rs = { path = "crates/pep508-rs", features = ["non-pep508-extensions"] }
platform-tags = { path = "crates/platform-tags" }
pypi-types = { path = "crates/pypi-types" }
requirements-txt = { path = "crates/requirements-txt" }
uv-auth = { path = "crates/uv-auth" }
uv-build = { path = "crates/uv-build" }
uv-cache = { path = "crates/uv-cache" }
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-dispatch = { path = "crates/uv-dispatch" }
uv-distribution = { path = "crates/uv-distribution" }
uv-extract = { path = "crates/uv-extract" }
uv-fs = { path = "crates/uv-fs" }
uv-git = { path = "crates/uv-git" }
uv-installer = { path = "crates/uv-installer" }
2024-06-13 21:53:27 -07:00
uv-macros = { path = "crates/uv-macros" }
uv-normalize = { path = "crates/uv-normalize" }
uv-requirements = { path = "crates/uv-requirements" }
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-state = { path = "crates/uv-state" }
2024-06-26 11:24:29 -04:00
uv-tool = { path = "crates/uv-tool" }
2024-07-03 08:44:29 -04:00
uv-python = { path = "crates/uv-python" }
uv-types = { path = "crates/uv-types" }
uv-version = { path = "crates/uv-version" }
uv-virtualenv = { path = "crates/uv-virtualenv" }
uv-warnings = { path = "crates/uv-warnings" }
2024-03-04 16:16:10 -06:00
anstream = { version = "0.6.13" }
2024-02-23 14:01:40 -06:00
anyhow = { version = "1.0.80" }
async-channel = { version = "2.2.0" }
2024-03-19 16:02:49 -04:00
async-compression = { version = "0.4.6" }
async-trait = { version = "0.1.78" }
async_http_range_reader = { version = "0.8.0" }
async_zip = { git = "https://github.com/charliermarsh/rs-async-zip", rev = "1dcb40cfe1bf5325a6fd4bfcf9894db40241f585", features = ["deflate"] }
axoupdater = { version = "0.6.0", default-features = false }
backoff = { version = "0.4.0" }
2024-04-08 03:02:35 +00:00
base64 = { version = "0.22.0" }
2024-01-05 17:40:12 +01:00
cachedir = { version = "0.3.1" }
cargo-util = { version = "0.2.8" }
2023-11-22 09:34:08 +01:00
chrono = { version = "0.4.31" }
2024-03-18 17:16:36 -05:00
clap = { version = "4.5.3" }
2024-02-19 04:43:18 +01:00
clap_complete_command = { version = "0.5.1" }
2024-01-05 17:40:12 +01:00
configparser = { version = "3.0.4" }
console = { version = "0.15.8", default-features = false }
2023-10-06 21:43:55 -04:00
csv = { version = "1.3.0" }
2024-03-11 21:42:04 +00:00
ctrlc = { version = "3.4.4" }
2024-07-01 01:49:15 +00:00
dashmap = { version = "6.0.0" }
2024-01-05 17:40:12 +01:00
data-encoding = { version = "2.5.0" }
2023-11-22 09:34:08 +01:00
derivative = { version = "2.2.0" }
2023-10-06 15:49:41 -04:00
directories = { version = "5.0.1" }
2024-04-17 13:59:50 -04:00
dirs-sys = { version = "0.4.1" }
dunce = { version = "1.0.4" }
either = { version = "1.12.0" }
encoding_rs_io = { version = "0.1.7" }
2024-01-19 17:29:11 -05:00
flate2 = { version = "1.0.28", default-features = false }
2024-01-05 17:40:12 +01:00
fs-err = { version = "2.11.0" }
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" }
2023-11-01 06:21:44 -07:00
hex = { version = "0.4.3" }
html-escape = { version = "0.2.13" }
2024-04-10 11:20:44 -04:00
http = { version = "1.1.0" }
2024-03-11 21:43:34 +00:00
indexmap = { version = "2.2.5" }
indicatif = { version = "0.17.7" }
2023-10-16 14:43:31 +02:00
indoc = { version = "2.0.4" }
itertools = { version = "0.13.0" }
junction = { version = "1.0.0" }
mailparse = { version = "0.15.0" }
md-5 = { version = "0.10.6" }
2024-07-01 08:20:24 -04:00
memchr = { version = "2.7.4" }
miette = { version = "7.2.0" }
2024-01-24 00:05:14 -05:00
nanoid = { version = "0.4.0" }
2024-01-05 17:40:12 +01:00
once_cell = { version = "1.19.0" }
2024-01-29 18:01:37 -08:00
owo-colors = { version = "4.0.0" }
path-absolutize = { version = "3.1.1" }
path-slash = { version = "0.2.1" }
pathdiff = { version = "0.2.1" }
2023-10-20 01:26:06 -04:00
petgraph = { version = "0.6.4" }
2023-10-06 15:49:41 -04:00
platform-info = { version = "2.0.2" }
pubgrub = { git = "https://github.com/astral-sh/pubgrub", rev = "b4435e2f3af10dab2336a0345b35dcd622699d06" }
2024-04-22 18:27:22 +00:00
pyo3 = { version = "0.21.0" }
pyo3-log = { version = "0.10.0" }
2024-06-13 21:53:27 -07:00
quote = { version = "1.0.36" }
2023-10-08 00:04:48 -04:00
rayon = { version = "1.8.0" }
reflink-copy = { version = "0.1.15" }
2023-11-06 15:14:47 +01:00
regex = { version = "1.10.2" }
2024-04-10 11:20:44 -04:00
reqwest = { version = "0.12.3", default-features = false, features = ["json", "gzip", "brotli", "stream", "rustls-tls", "rustls-tls-native-roots"] }
2024-07-02 19:04:11 +02:00
reqwest-middleware = { git = "https://github.com/astral-sh/reqwest-middleware", rev = "21ceec9a5fd2e8d6f71c3ea2999078fecbd13cbe" }
reqwest-retry = { git = "https://github.com/astral-sh/reqwest-middleware", rev = "21ceec9a5fd2e8d6f71c3ea2999078fecbd13cbe" }
2024-01-28 12:14:59 -05:00
rkyv = { version = "0.7.43", features = ["strict", "validation"] }
rmp-serde = { version = "1.1.2" }
rust-netrc = { version = "0.1.1" }
2024-06-24 01:13:05 +00:00
rustc-hash = { version = "2.0.0" }
same-file = { version = "1.0.6" }
2024-05-03 23:10:50 +02:00
schemars = { version = "0.8.16", features = ["url"] }
2023-10-08 14:45:08 -04:00
seahash = { version = "4.1.0" }
2024-05-29 17:31:39 +02:00
serde = { version = "1.0.197", features = ["derive"] }
serde_json = { version = "1.0.114" }
2023-10-06 21:43:55 -04:00
sha2 = { version = "0.10.8" }
2024-06-13 21:53:27 -07:00
syn = { version = "2.0.66" }
sys-info = { version = "0.9.1" }
target-lexicon = {version = "0.12.14" }
2024-01-05 17:40:12 +01:00
tempfile = { version = "3.9.0" }
2024-02-23 14:01:05 -06:00
textwrap = { version = "0.16.1" }
2024-01-05 17:40:12 +01:00
thiserror = { version = "1.0.56" }
2023-12-24 11:04:00 -05:00
tl = { version = "0.7.7" }
2024-04-24 10:55:15 +02:00
tokio = { version = "1.35.1", features = ["fs", "io-util", "macros", "process", "rt-multi-thread", "sync"] }
2024-02-12 22:35:23 -05:00
tokio-stream = { version = "0.1.14" }
2024-01-29 07:00:30 -08:00
tokio-tar = { version = "0.3.1" }
2023-11-06 15:14:47 +01:00
tokio-util = { version = "0.7.10", features = ["compat"] }
2024-03-18 17:52:28 -04:00
toml = { version = "0.8.12" }
2024-05-30 15:08:29 -04:00
toml_edit = { version = "0.22.13" }
2023-11-06 15:14:47 +01:00
tracing = { version = "0.1.40" }
tracing-durations-export = { version = "0.2.0", features = ["plot"] }
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "json", "registry"] }
2024-01-05 17:40:12 +01:00
tracing-tree = { version = "0.3.0" }
2023-11-06 15:14:47 +01:00
unicode-width = { version = "0.1.11" }
2023-10-12 13:09:00 -04:00
unscanny = { version = "0.1.0" }
2024-01-05 17:40:12 +01:00
url = { version = "2.5.0" }
urlencoding = { version = "2.1.3" }
2024-03-11 19:37:08 -04:00
walkdir = { version = "2.5.0" }
2024-01-29 18:01:37 -08:00
which = { version = "6.0.0" }
winapi = { version = "0.3.9", features = ["fileapi", "handleapi", "ioapiset", "winbase", "winioctl", "winnt"] }
2024-06-13 21:53:27 -07:00
wiremock = { version = "0.6.0" }
2024-05-18 13:31:53 -04:00
zip = { version = "0.6.6", default-features = false, features = ["deflate"] }
2023-10-09 16:48:55 -04:00
2024-05-12 21:43:45 -04:00
[workspace.metadata.cargo-shear]
ignored = ["flate2"]
2023-10-16 14:43:31 +02:00
[patch.crates-io]
# For pyproject-toml
pep440_rs = { path = "crates/pep440-rs" }
2023-10-16 14:43:31 +02:00
pep508_rs = { path = "crates/pep508-rs" }
2024-07-02 19:04:11 +02:00
reqwest-middleware = { git = "https://github.com/astral-sh/reqwest-middleware", rev = "21ceec9a5fd2e8d6f71c3ea2999078fecbd13cbe" }
2023-10-16 14:43:31 +02:00
[workspace.lints.rust]
unsafe_code = "warn"
unreachable_pub = "warn"
# TODO(konsti): Reactivate when check-cfg hits stable rust
# unexpected_cfgs = { level = "warn", check-cfg = ['cfg(codspeed)'] }
[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"
too_many_lines = "allow"
too_many_arguments = "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"
2023-10-13 11:50:04 +02:00
[profile.profiling]
inherits = "release"
debug = true
2024-01-18 15:44:11 -05:00
[profile.fast-build]
inherits = "dev"
debug = 0
strip = "debuginfo"
2024-01-18 15:44:11 -05:00
# The profile that 'cargo dist' will build with.
[profile.dist]
inherits = "release"
lto = "thin"
# Config for 'cargo dist'
[workspace.metadata.dist]
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
2024-07-03 18:39:51 -04:00
cargo-dist-version = "0.18.0"
2024-01-18 15:44:11 -05:00
# 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",
2024-04-23 13:18:21 -05:00
]
# Whether to auto-include files like READMEs, LICENSEs, and CHANGELOGs (default true)
2024-01-18 15:44:11 -05:00
auto-includes = false
2024-07-03 18:39:51 -04:00
# Whether cargo-dist should create a GitHub Release or use an existing draft
2024-01-18 15:44:11 -05:00
create-release = true
# Publish jobs to run in CI
2024-01-18 20:59:06 -05:00
pr-run-mode = "skip"
2024-01-18 15:44:11 -05:00
# Whether CI should trigger releases with dispatches instead of tag pushes
dispatch-releases = true
2024-07-03 18:39:51 -04:00
# The stage during which the GitHub Release should be created
2024-06-28 10:59:09 -04:00
github-release = "announce"
2024-01-18 15:44:11 -05:00
# 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"]
2024-01-18 15:44:11 -05:00
# Publish jobs to run in CI
publish-jobs = ["./publish-pypi"]
2024-07-03 18:39:51 -04:00
# Custom permissions for GitHub Jobs
github-custom-job-permissions = { "build-docker" = { packages = "write", contents = "read" } }
2024-04-23 13:18:21 -05:00
# Whether to install an updater program
install-updater = false