summaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml10
1 files changed, 10 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 79217e8..ee76db5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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"