summaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authoraur-build <aur-build@localhost>2026-11-17 20:47:03 +0000
committeraur-build <aur-build@localhost>2026-11-17 20:47:03 +0000
commit3762c7ce9f765283f47e5716b708e04590339375 (patch)
tree59a2ceab670824c11cc2822363aff2ea887c5f9f /Cargo.toml
downloadaur-build-3762c7ce9f765283f47e5716b708e04590339375.tar.gz
aur-build-3762c7ce9f765283f47e5716b708e04590339375.zip
chore: scaffold cargo project, toolchain shim binaries, git baseline
Provisions rustup + devtools from the distro package set and lays down the crate skeleton: library, CLI binary, and one binary per external tool the pipeline shells out to (mkarchroot, makechrootpkg, makepkg, repo-add, gpg, pacman) so the §16a PATH shims are real executables that cargo builds and tests can locate via CARGO_BIN_EXE_*. Part of P0 (DESIGN.md §17).
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml61
1 files changed, 61 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
new file mode 100644
index 0000000..10146c2
--- /dev/null
+++ b/Cargo.toml
@@ -0,0 +1,61 @@
+[package]
+name = "aur-build"
+version = "0.1.0"
+edition = "2021"
+description = "AUR build server: watch AUR packages, require human approval for every change, build in a clean chroot, publish a signed repo"
+license = "MIT"
+
+[lib]
+name = "aur_build"
+path = "src/lib.rs"
+
+[[bin]]
+name = "aur-build"
+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.
+# ---------------------------------------------------------------------------
+[[bin]]
+name = "mkarchroot"
+path = "src/bin/mkarchroot.rs"
+[[bin]]
+name = "makechrootpkg"
+path = "src/bin/makechrootpkg.rs"
+[[bin]]
+name = "makepkg"
+path = "src/bin/makepkg.rs"
+[[bin]]
+name = "repo-add"
+path = "src/bin/repo-add.rs"
+[[bin]]
+name = "gpg"
+path = "src/bin/gpg.rs"
+[[bin]]
+name = "pacman"
+path = "src/bin/pacman.rs"
+
+[dependencies]
+anyhow = "1"
+thiserror = "2"
+rusqlite = { version = "0.37", features = ["bundled", "chrono"] }
+crossbeam-channel = "0.5"
+tiny_http = "0.12"
+askama = "0.14"
+ureq = { version = "2", features = ["json"] }
+similar = "2"
+serde = { version = "1", features = ["derive"] }
+serde_json = "1"
+sha2 = "0.10"
+hex = "0.4"
+clap = { version = "4", features = ["derive"] }
+chrono = { version = "0.4", features = ["serde"] }
+walkdir = "2"
+tar = "0.4"
+zstd = "0.13"
+flate2 = "1"
+
+[dev-dependencies]
+tempfile = "3"