Skip to content

Commit

Permalink
exclude crates from workspace checks/clippy runs
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Sep 4, 2024
1 parent 8814da4 commit c6436c1
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 33 deletions.
3 changes: 1 addition & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ 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-production-memory-allocator",
"crates/uv-production-flate2-backend",
]
resolver = "2"

Expand Down Expand Up @@ -56,8 +60,6 @@ uv-version = { path = "crates/uv-version" }
uv-virtualenv = { path = "crates/uv-virtualenv" }
uv-warnings = { path = "crates/uv-warnings" }
uv-workspace = { path = "crates/uv-workspace" }
uv-production-memory-allocator = { path = "crates/uv-production-memory-allocator" }
uv-production-flate2-backend = { path = "crates/uv-production-flate2-backend" }

anstream = { version = "0.6.13" }
anyhow = { version = "1.0.80" }
Expand Down Expand Up @@ -169,7 +171,7 @@ xz2 = { version = "0.1.7" }
zip = { version = "0.6.6", default-features = false, features = ["deflate"] }

[workspace.metadata.cargo-shear]
ignored = ["flate2", "xz2", "uv-production-memory-allocator", "uv-production-flate2-backend"]
ignored = ["flate2", "xz2"]

[patch.crates-io]
# For pyproject-toml
Expand Down
11 changes: 5 additions & 6 deletions crates/uv-dev/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,7 @@ tracing = { workspace = true }
tracing-durations-export = { workspace = true, features = ["plot"] }
tracing-subscriber = { workspace = true }
walkdir = { workspace = true }

[target.'cfg(target_os = "windows")'.dependencies]
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]
tikv-jemallocator = { version = "0.6.0" }
uv-production-memory-allocator = { path = "../uv-production-memory-allocator", optional = true }

[[bin]]
name = "uv-dev"
Expand All @@ -76,4 +71,8 @@ required-features = ["dev"]
default = []
# Actually build the dev CLI.
dev = []
production = ["dep:uv-production-memory-allocator"]
render = ["poloto", "resvg", "tagu"]

[package.metadata.cargo-shear]
ignored = ["flate2", "uv-production-flate2-backend"]
11 changes: 1 addition & 10 deletions crates/uv-production-flate2-backend/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
[package]
name = "uv-production-flate2-backend"
version = "0.1.0"
edition.workspace = true
rust-version.workspace = true
homepage.workspace = true
documentation.workspace = true
repository.workspace = true
authors.workspace = true
license.workspace = true
publish = false

[target.'cfg(not(target_arch = "s390x"))'.dependencies]
flate2 = { version = "1.0.28", default-features = false, features = ["zlib-ng"] }

[target.'cfg(target_arch = "s390x")'.dependencies]
flate2 = { version = "1.0.28", default-features = false, features = ["rust_backend"] }

[lints]
workspace = true
11 changes: 1 addition & 10 deletions crates/uv-production-memory-allocator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
[package]
name = "uv-production-memory-allocator"
version = "0.1.0"
edition.workspace = true
rust-version.workspace = true
homepage.workspace = true
documentation.workspace = true
repository.workspace = true
authors.workspace = true
license.workspace = true

[lints]
workspace = true
publish = false

[dependencies]

Expand Down
4 changes: 2 additions & 2 deletions crates/uv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ uv-types = { workspace = true }
uv-virtualenv = { workspace = true }
uv-warnings = { workspace = true }
uv-workspace = { workspace = true }
uv-production-memory-allocator = { workspace = true, optional = true }
uv-production-flate2-backend = { workspace = true, optional = true }
uv-production-memory-allocator = { path = "../uv-production-memory-allocator", optional = true }
uv-production-flate2-backend = { path = "../uv-production-flate2-backend", optional = true }

anstream = { workspace = true }
anyhow = { workspace = true }
Expand Down

0 comments on commit c6436c1

Please sign in to comment.