Dereference workspace lints for nix-cargo-integration compatibility

Replace `[lints] workspace = true` with explicit lint configuration in
each crate's Cargo.toml. This allows nix-cargo-integration to build
individual crates in isolation, as it cannot resolve workspace-level
lint configuration when building crates independently.
This commit is contained in:
Robert Hensing 2025-12-16 03:06:58 +01:00
parent c4afb037ff
commit b78dd97051
5 changed files with 40 additions and 10 deletions

View file

@ -17,5 +17,11 @@ ctor = "0.2"
tempfile = "3.10"
cstr = "0.2"
[lints]
workspace = true
[lints.rust]
warnings = "deny"
dead-code = "allow"
[lints.clippy]
type-complexity = "allow"
# We're still trying to make Nix more thread-safe, want forward-compat
arc-with-non-send-sync = "allow"

View file

@ -16,5 +16,11 @@ ctor = "0.2"
tempfile = "3.10"
cstr = "0.2"
[lints]
workspace = true
[lints.rust]
warnings = "deny"
dead-code = "allow"
[lints.clippy]
type-complexity = "allow"
# We're still trying to make Nix more thread-safe, want forward-compat
arc-with-non-send-sync = "allow"

View file

@ -19,5 +19,11 @@ ctor = "0.2"
tempfile = "3.10"
cstr = "0.2"
[lints]
workspace = true
[lints.rust]
warnings = "deny"
dead-code = "allow"
[lints.clippy]
type-complexity = "allow"
# We're still trying to make Nix more thread-safe, want forward-compat
arc-with-non-send-sync = "allow"

View file

@ -23,5 +23,11 @@ pkg-config = "0.3"
# Needed for version parsing in build.rs
nix-bindings-util = { path = "../nix-bindings-util" }
[lints]
workspace = true
[lints.rust]
warnings = "deny"
dead-code = "allow"
[lints.clippy]
type-complexity = "allow"
# We're still trying to make Nix more thread-safe, want forward-compat
arc-with-non-send-sync = "allow"

View file

@ -12,5 +12,11 @@ anyhow = "1.0"
nix-bindings-bindgen-raw = { path = "../nix-bindings-bindgen-raw" }
ctor = "0.2"
[lints]
workspace = true
[lints.rust]
warnings = "deny"
dead-code = "allow"
[lints.clippy]
type-complexity = "allow"
# We're still trying to make Nix more thread-safe, want forward-compat
arc-with-non-send-sync = "allow"