summaryrefslogtreecommitdiffstats
path: root/Cargo.toml
blob: 7a687f6e8557f1f08d4518c1e123e922ddf84703 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[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", "env"] }
chrono = { version = "0.4", features = ["serde"] }
walkdir = "2"
tar = "0.4"
zstd = "0.13"
flate2 = "1"

[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]
tempfile = "3"
flate2 = "1"
tar = "0.4"