[control] Test hooks: IANITOR_TEST_CRASH_AT and IANITOR_TEST_FAIL_WRITE only with the default test-hooks feature; a --no-default-features build has neither

This commit is contained in:
2026-11-07 23:23:51 +01:00
parent 12886a1d31
commit 6237e721d6
2 changed files with 25 additions and 1 deletions
+6
View File
@@ -15,6 +15,12 @@ path = "src/lib.rs"
name = "ianitor-control"
path = "src/main.rs"
[features]
# The crash and write-failure hooks of the crash-safety tests (src/crash.rs). The Nix release
# build turns them off with --no-default-features.
default = ["test-hooks"]
test-hooks = []
[dependencies]
ianitor-core.workspace = true
axum = { version = "0.8.9", default-features = false, features = ["http1", "json", "query", "tokio", "matched-path"] }