diff options
Diffstat (limited to 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -17,25 +17,35 @@ path = "src/main.rs" # Toolchain shims (DESIGN.md §16a). These are real binaries with the exact names # the pipeline shells out to; the test harness prepends their directory to PATH # so the whole step machine runs without root, network or an Arch chroot. +# +# They are test-only (§6 M-4) and declare the `test-support` feature, so a +# production `cargo build --release` neither builds them nor links the shim code +# into the library. # --------------------------------------------------------------------------- [[bin]] name = "mkarchroot" path = "src/bin/mkarchroot.rs" +required-features = ["test-support"] [[bin]] name = "makechrootpkg" path = "src/bin/makechrootpkg.rs" +required-features = ["test-support"] [[bin]] name = "makepkg" path = "src/bin/makepkg.rs" +required-features = ["test-support"] [[bin]] name = "repo-add" path = "src/bin/repo-add.rs" +required-features = ["test-support"] [[bin]] name = "gpg" path = "src/bin/gpg.rs" +required-features = ["test-support"] [[bin]] name = "pacman" path = "src/bin/pacman.rs" +required-features = ["test-support"] [dependencies] anyhow = "1" |
