summaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml11
1 files changed, 11 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index b74dbab..79217e8 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -58,12 +58,23 @@ zstd = "0.13"
libc = "0"
flate2 = "1"
+[features]
+# Test-only escape hatches. A fixture sometimes needs a database state no typed
+# API reaches (ยง6 M-9), and the honest way to allow that is to say where: this
+# feature is enabled only by the crate's own dev-dependency below, so a
+# production build cannot see the raw-SQL door at all.
+test-support = []
+
[lints.cargo]
# Cargo warns about dependencies that are not yet referenced from every target;
# they are all used by targets further down the roadmap.
unused_dependencies = "allow"
[dev-dependencies]
+# Self-dependency, the standard way to turn on a feature for the test targets
+# only. The integration tests and `tests/common` are separate crates, so this is
+# how they get the `test-support` escape hatch without the library exposing it.
+aur-build = { path = ".", features = ["test-support"] }
tempfile = "3"
flate2 = "1"
tar = "0.4"