diff options
Diffstat (limited to 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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" |
