2023-12-21 01:33:31 +01: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 06:11:21 +01:00
|
|
|
[[task]]
|
|
|
|
name = "cargo-audit"
|
|
|
|
group = "versions"
|
|
|
|
script = "cargo audit --version"
|
|
|
|
|
2024-03-10 06:12:11 +01:00
|
|
|
[[task]]
|
|
|
|
name = "cargo-deb"
|
|
|
|
group = "versions"
|
|
|
|
script = "cargo deb --version"
|
|
|
|
|
2024-03-17 23:06:10 +01:00
|
|
|
[[task]]
|
|
|
|
name = "lychee"
|
|
|
|
group = "versions"
|
|
|
|
script = "lychee --version"
|
|
|
|
|
2024-07-03 09:32:18 +02:00
|
|
|
[[task]]
|
|
|
|
name = "markdownlint"
|
|
|
|
group = "versions"
|
|
|
|
script = "markdownlint --version"
|
|
|
|
|
2024-07-25 01:34:19 +02:00
|
|
|
[[task]]
|
|
|
|
name = "dpkg"
|
|
|
|
group = "versions"
|
|
|
|
script = "dpkg --version"
|
|
|
|
|
2024-03-10 06:11:21 +01:00
|
|
|
[[task]]
|
|
|
|
name = "cargo-audit"
|
|
|
|
group = "security"
|
2024-05-24 06:17:26 +02:00
|
|
|
script = "cargo audit -D warnings -D unmaintained -D unsound -D yanked"
|
2024-03-10 06:11:21 +01:00
|
|
|
|
2023-12-21 01:33:31 +01:00
|
|
|
[[task]]
|
|
|
|
name = "cargo-fmt"
|
|
|
|
group = "lints"
|
2024-07-26 00:06:45 +02:00
|
|
|
script = """
|
|
|
|
cargo fmt --check -- --color=always
|
|
|
|
"""
|
2023-12-21 01:33:31 +01:00
|
|
|
|
|
|
|
[[task]]
|
|
|
|
name = "cargo-doc"
|
|
|
|
group = "lints"
|
|
|
|
script = """
|
2024-06-01 06:33:41 +02:00
|
|
|
env DIRENV_DEVSHELL=all-features \
|
|
|
|
RUSTDOCFLAGS="-D warnings" \
|
|
|
|
direnv exec . \
|
|
|
|
cargo doc \
|
|
|
|
--workspace \
|
2024-07-26 00:06:45 +02:00
|
|
|
--profile test \
|
2024-06-01 06:33:41 +02:00
|
|
|
--all-features \
|
|
|
|
--no-deps \
|
|
|
|
--document-private-items \
|
|
|
|
--color always
|
2023-12-21 01:33:31 +01:00
|
|
|
"""
|
|
|
|
|
|
|
|
[[task]]
|
2024-04-28 01:21:53 +02:00
|
|
|
name = "clippy/default"
|
|
|
|
group = "lints"
|
|
|
|
script = """
|
|
|
|
cargo clippy \
|
|
|
|
--workspace \
|
2024-07-26 00:06:45 +02:00
|
|
|
--profile test \
|
2024-04-28 01:21:53 +02:00
|
|
|
--all-targets \
|
|
|
|
--color=always \
|
|
|
|
-- \
|
|
|
|
-D warnings
|
|
|
|
"""
|
|
|
|
|
|
|
|
[[task]]
|
|
|
|
name = "clippy/all"
|
2023-12-21 01:33:31 +01:00
|
|
|
group = "lints"
|
2024-04-28 01:10:31 +02:00
|
|
|
script = """
|
2024-06-01 06:28:14 +02:00
|
|
|
env DIRENV_DEVSHELL=all-features \
|
|
|
|
direnv exec . \
|
|
|
|
cargo clippy \
|
|
|
|
--workspace \
|
2024-07-26 00:06:45 +02:00
|
|
|
--profile test \
|
2024-06-01 06:28:14 +02:00
|
|
|
--all-targets \
|
|
|
|
--all-features \
|
|
|
|
--color=always \
|
|
|
|
-- \
|
|
|
|
-D warnings
|
2024-04-28 01:10:31 +02:00
|
|
|
"""
|
2023-12-21 01:33:31 +01:00
|
|
|
|
2024-04-28 01:21:53 +02:00
|
|
|
[[task]]
|
|
|
|
name = "clippy/jemalloc"
|
|
|
|
group = "lints"
|
|
|
|
script = """
|
|
|
|
cargo clippy \
|
|
|
|
--workspace \
|
2024-07-26 00:06:45 +02:00
|
|
|
--profile test \
|
2024-04-28 01:21:53 +02:00
|
|
|
--features jemalloc \
|
|
|
|
--all-targets \
|
|
|
|
--color=always \
|
|
|
|
-- \
|
|
|
|
-D warnings
|
|
|
|
"""
|
|
|
|
|
2024-05-28 18:53:39 +02:00
|
|
|
#[[task]]
|
|
|
|
#name = "clippy/hardened_malloc"
|
|
|
|
#group = "lints"
|
|
|
|
#script = """
|
|
|
|
#cargo clippy \
|
|
|
|
# --workspace \
|
|
|
|
# --features hardened_malloc \
|
|
|
|
# --all-targets \
|
|
|
|
# --color=always \
|
|
|
|
# -- \
|
|
|
|
# -D warnings
|
|
|
|
#"""
|
2024-04-28 01:21:53 +02:00
|
|
|
|
2024-03-17 23:06:10 +01:00
|
|
|
[[task]]
|
|
|
|
name = "lychee"
|
|
|
|
group = "lints"
|
2024-09-08 16:24:38 +02:00
|
|
|
script = "lychee --verbose --offline docs *.md --exclude development.md --exclude contributing.md --exclude testing.md"
|
2024-03-17 23:06:10 +01:00
|
|
|
|
2024-07-03 09:32:18 +02:00
|
|
|
[[task]]
|
|
|
|
name = "markdownlint"
|
|
|
|
group = "lints"
|
2024-07-03 09:49:33 +02:00
|
|
|
script = "markdownlint docs *.md || true" # TODO: fix the ton of markdown lints so we can drop `|| true`
|
2024-07-03 09:32:18 +02:00
|
|
|
|
2023-12-21 01:33:31 +01:00
|
|
|
[[task]]
|
2024-06-01 06:17:03 +02:00
|
|
|
name = "cargo/all"
|
|
|
|
group = "tests"
|
|
|
|
script = """
|
|
|
|
env DIRENV_DEVSHELL=all-features \
|
|
|
|
direnv exec . \
|
|
|
|
cargo test \
|
|
|
|
--workspace \
|
2024-07-26 00:06:45 +02:00
|
|
|
--profile test \
|
2024-06-01 06:17:03 +02:00
|
|
|
--all-targets \
|
|
|
|
--all-features \
|
|
|
|
--color=always \
|
|
|
|
-- \
|
|
|
|
--color=always
|
|
|
|
"""
|
|
|
|
|
|
|
|
[[task]]
|
|
|
|
name = "cargo/default"
|
2023-12-21 01:33:31 +01:00
|
|
|
group = "tests"
|
|
|
|
script = """
|
|
|
|
cargo test \
|
|
|
|
--workspace \
|
2024-07-26 00:06:45 +02:00
|
|
|
--profile test \
|
2023-12-21 01:33:31 +01:00
|
|
|
--all-targets \
|
|
|
|
--color=always \
|
|
|
|
-- \
|
|
|
|
--color=always
|
|
|
|
"""
|
2024-05-25 02:07:14 +02: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 = """
|
2024-07-14 08:07:07 +02:00
|
|
|
env DIRENV_DEVSHELL=dynamic \
|
2024-07-26 00:06:45 +02:00
|
|
|
CARGO_PROFILE="test" \
|
2024-07-14 08:07:07 +02:00
|
|
|
direnv exec . \
|
2024-07-26 00:06:45 +02:00
|
|
|
bin/nix-build-and-cache just .#default-test
|
2024-07-14 08:07:07 +02:00
|
|
|
env DIRENV_DEVSHELL=dynamic \
|
2024-07-26 00:06:45 +02:00
|
|
|
CARGO_PROFILE="test" \
|
2024-07-14 08:07:07 +02:00
|
|
|
direnv exec . \
|
2024-07-26 00:06:45 +02:00
|
|
|
nix run -L .#default-test -- --help && nix run -L .#default-test -- --version
|
2024-05-25 02:07:14 +02:00
|
|
|
"""
|