catch clippy lints for --no-default-features builds

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2025-02-06 16:57:30 -05:00
parent ef2d307c15
commit c7c9f0e4a6

View file

@ -101,7 +101,6 @@ direnv exec . \
cargo clippy \
--workspace \
--profile test \
--all-targets \
--color=always \
-- \
-D warnings
@ -116,13 +115,27 @@ env DIRENV_DEVSHELL=all-features \
cargo clippy \
--workspace \
--profile test \
--all-targets \
--all-features \
--color=always \
-- \
-D warnings
"""
[[task]]
name = "clippy/no-features"
group = "lints"
script = """
env DIRENV_DEVSHELL=no-features \
direnv exec . \
cargo clippy \
--workspace \
--profile test \
--no-default-features \
--color=always \
-- \
-D warnings
"""
[[task]]
name = "clippy/jemalloc"
group = "lints"
@ -131,26 +144,12 @@ direnv exec . \
cargo clippy \
--workspace \
--profile test \
--features jemalloc \
--all-targets \
--features=jemalloc \
--color=always \
-- \
-D warnings
"""
#[[task]]
#name = "clippy/hardened_malloc"
#group = "lints"
#script = """
#cargo clippy \
# --workspace \
# --features hardened_malloc \
# --all-targets \
# --color=always \
# -- \
# -D warnings
#"""
[[task]]
name = "lychee"
group = "lints"
@ -170,7 +169,6 @@ env DIRENV_DEVSHELL=all-features \
cargo test \
--workspace \
--profile test \
--all-targets \
--all-features \
--color=always \
-- \
@ -186,7 +184,21 @@ env DIRENV_DEVSHELL=default \
cargo test \
--workspace \
--profile test \
--all-targets \
--color=always \
-- \
--color=always
"""
[[task]]
name = "cargo/no-features"
group = "tests"
script = """
env DIRENV_DEVSHELL=no-features \
direnv exec . \
cargo test \
--workspace \
--profile test \
--no-default-features \
--color=always \
-- \
--color=always