2023-12-21 00:33:31 +00:00
|
|
|
interpreter = ["bash", "-euo", "pipefail", "-c"]
|
|
|
|
|
|
|
|
[[task]]
|
|
|
|
name = "engage"
|
|
|
|
group = "versions"
|
|
|
|
script = "engage --version"
|
|
|
|
|
|
|
|
[[task]]
|
|
|
|
name = "nix"
|
|
|
|
group = "versions"
|
|
|
|
script = "nix --version"
|
|
|
|
|
|
|
|
[[task]]
|
|
|
|
name = "direnv"
|
|
|
|
group = "versions"
|
|
|
|
script = "direnv --version"
|
|
|
|
|
|
|
|
[[task]]
|
|
|
|
name = "rustc"
|
|
|
|
group = "versions"
|
|
|
|
script = "rustc --version"
|
|
|
|
|
|
|
|
[[task]]
|
|
|
|
name = "cargo"
|
|
|
|
group = "versions"
|
|
|
|
script = "cargo --version"
|
|
|
|
|
|
|
|
[[task]]
|
|
|
|
name = "cargo-fmt"
|
|
|
|
group = "versions"
|
|
|
|
script = "cargo fmt --version"
|
|
|
|
|
|
|
|
[[task]]
|
|
|
|
name = "rustdoc"
|
|
|
|
group = "versions"
|
|
|
|
script = "rustdoc --version"
|
|
|
|
|
|
|
|
[[task]]
|
|
|
|
name = "cargo-clippy"
|
|
|
|
group = "versions"
|
|
|
|
script = "cargo clippy -- --version"
|
|
|
|
|
2024-03-10 05:11:21 +00:00
|
|
|
[[task]]
|
|
|
|
name = "cargo-audit"
|
|
|
|
group = "versions"
|
|
|
|
script = "cargo audit --version"
|
|
|
|
|
2024-03-10 05:12:11 +00:00
|
|
|
[[task]]
|
|
|
|
name = "cargo-deb"
|
|
|
|
group = "versions"
|
|
|
|
script = "cargo deb --version"
|
|
|
|
|
2024-03-17 22:06:10 +00:00
|
|
|
[[task]]
|
|
|
|
name = "lychee"
|
|
|
|
group = "versions"
|
|
|
|
script = "lychee --version"
|
|
|
|
|
2024-03-10 05:11:21 +00:00
|
|
|
[[task]]
|
|
|
|
name = "cargo-audit"
|
|
|
|
group = "security"
|
2024-05-24 04:17:26 +00:00
|
|
|
script = "cargo audit -D warnings -D unmaintained -D unsound -D yanked"
|
2024-03-10 05:11:21 +00:00
|
|
|
|
2023-12-21 00:33:31 +00:00
|
|
|
[[task]]
|
|
|
|
name = "cargo-fmt"
|
|
|
|
group = "lints"
|
|
|
|
script = "cargo fmt --check -- --color=always"
|
|
|
|
|
|
|
|
[[task]]
|
|
|
|
name = "cargo-doc"
|
|
|
|
group = "lints"
|
|
|
|
script = """
|
|
|
|
RUSTDOCFLAGS="-D warnings" cargo doc \
|
|
|
|
--workspace \
|
2024-03-10 05:09:14 +00:00
|
|
|
--all-features \
|
2023-12-21 00:33:31 +00:00
|
|
|
--no-deps \
|
|
|
|
--document-private-items \
|
|
|
|
--color always
|
|
|
|
"""
|
|
|
|
|
|
|
|
[[task]]
|
2024-04-27 23:21:53 +00:00
|
|
|
name = "clippy/default"
|
|
|
|
group = "lints"
|
|
|
|
script = """
|
|
|
|
cargo clippy \
|
|
|
|
--workspace \
|
|
|
|
--all-targets \
|
|
|
|
--color=always \
|
|
|
|
-- \
|
|
|
|
-D warnings
|
|
|
|
"""
|
|
|
|
|
|
|
|
[[task]]
|
|
|
|
name = "clippy/all"
|
2023-12-21 00:33:31 +00:00
|
|
|
group = "lints"
|
2024-04-27 23:10:31 +00:00
|
|
|
script = """
|
|
|
|
cargo clippy \
|
|
|
|
--workspace \
|
|
|
|
--all-targets \
|
|
|
|
--all-features \
|
|
|
|
--color=always \
|
|
|
|
-- \
|
|
|
|
-D warnings
|
|
|
|
"""
|
2023-12-21 00:33:31 +00:00
|
|
|
|
2024-04-27 23:21:53 +00:00
|
|
|
[[task]]
|
|
|
|
name = "clippy/jemalloc"
|
|
|
|
group = "lints"
|
|
|
|
script = """
|
|
|
|
cargo clippy \
|
|
|
|
--workspace \
|
|
|
|
--features jemalloc \
|
|
|
|
--all-targets \
|
|
|
|
--color=always \
|
|
|
|
-- \
|
|
|
|
-D warnings
|
|
|
|
"""
|
|
|
|
|
|
|
|
[[task]]
|
|
|
|
name = "clippy/hardened_malloc"
|
|
|
|
group = "lints"
|
|
|
|
script = """
|
|
|
|
cargo clippy \
|
|
|
|
--workspace \
|
|
|
|
--features hardened_malloc \
|
|
|
|
--all-targets \
|
|
|
|
--color=always \
|
|
|
|
-- \
|
|
|
|
-D warnings
|
|
|
|
"""
|
|
|
|
|
2024-03-17 22:06:10 +00:00
|
|
|
[[task]]
|
|
|
|
name = "lychee"
|
|
|
|
group = "lints"
|
2024-05-04 18:58:49 +00:00
|
|
|
script = "lychee --verbose --offline docs *.md"
|
2024-03-17 22:06:10 +00:00
|
|
|
|
2023-12-21 00:33:31 +00:00
|
|
|
[[task]]
|
|
|
|
name = "cargo"
|
|
|
|
group = "tests"
|
|
|
|
script = """
|
|
|
|
cargo test \
|
|
|
|
--workspace \
|
|
|
|
--all-targets \
|
2024-03-10 01:44:39 +00:00
|
|
|
--all-features \
|
2023-12-21 00:33:31 +00:00
|
|
|
--color=always \
|
|
|
|
-- \
|
|
|
|
--color=always
|
|
|
|
"""
|
2024-05-25 00:07:14 +00:00
|
|
|
|
|
|
|
# Ensure that the flake's default output can build and run without crashing
|
|
|
|
#
|
|
|
|
# This is a dynamically-linked jemalloc build, which is a case not covered by
|
|
|
|
# our other tests. We've had linking problems in the past with dynamic
|
|
|
|
# jemalloc builds that usually show up as an immediate segfault or "invalid free"
|
|
|
|
[[task]]
|
|
|
|
name = "nix-default"
|
|
|
|
group = "tests"
|
|
|
|
script = """
|
|
|
|
nix run .#default -- --help
|
|
|
|
"""
|