mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Don't build uv-dev by default (#6827)
Most times we compile with `cargo build`, we don't actually need `uv-dev`. By making `uv-dev` dependent on a new `dev` feature, it doesn't get built by default anymore, but only when passing `--features dev`. Hopefully a small improvement for compile times or at least system load.
This commit is contained in:
parent
34d74501ac
commit
0b16d10b27
2 changed files with 8 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
[alias]
|
[alias]
|
||||||
dev = "run --package uv-dev"
|
dev = "run --package uv-dev --features dev"
|
||||||
|
|
||||||
# statically link the C runtime so the executable does not depend on
|
# statically link the C runtime so the executable does not depend on
|
||||||
# that shared/dynamic library.
|
# that shared/dynamic library.
|
||||||
|
|
|
@ -67,6 +67,13 @@ mimalloc = { version = "0.1.39" }
|
||||||
[target.'cfg(all(not(target_os = "windows"), not(target_os = "openbsd"), any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "powerpc64")))'.dependencies]
|
[target.'cfg(all(not(target_os = "windows"), not(target_os = "openbsd"), any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "powerpc64")))'.dependencies]
|
||||||
tikv-jemallocator = { version = "0.6.0" }
|
tikv-jemallocator = { version = "0.6.0" }
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "uv-dev"
|
||||||
|
# We don't want to build the dev CLI by default, so we skip it by requiring an off-by-default feature
|
||||||
|
required-features = ["dev"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
|
# Actually build the dev CLI.
|
||||||
|
dev = []
|
||||||
render = ["poloto", "resvg", "tagu"]
|
render = ["poloto", "resvg", "tagu"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue