summaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authoraur-build <aur-build@localhost>2026-11-17 20:59:57 +0000
committeraur-build <aur-build@localhost>2026-11-17 20:59:57 +0000
commitfd3ecf91686b11feea078531baeddb60e6941116 (patch)
tree7e76c0d8a2041bf0d8d227939db9e55ea5b2afb5 /Cargo.toml
parent3762c7ce9f765283f47e5716b708e04590339375 (diff)
downloadaur-build-fd3ecf91686b11feea078531baeddb60e6941116.tar.gz
aur-build-fd3ecf91686b11feea078531baeddb60e6941116.zip
feat: SQLite schema, migrations, single writer actor
The §11 data model as four migrations, plus the §11a concurrency model: one writer thread owning the write connection (mutations arrive as closures over a crossbeam channel, so SQLITE_BUSY is not part of the design) and thread-local read-only connections under WAL. Invariants that are database guarantees rather than conventions: I7 partial unique index -> at most one pending_review per pkgbase I3 UNIQUE(pkgbase_id, identity_hash) -> no duplicate candidates I10 audit table rejects UPDATE and DELETE by trigger §16 current_accepted_release_id moves only by compare-and-swap Also: vercmp + dependency-string parsing (ALPM algorithm, no libalpm), hash helpers including recipe_hash over the whole AUR tree, the clock helper that stamps every write, and the config/root layout. Part of P0 (DESIGN.md §17).
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml5
1 files changed, 5 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 10146c2..1749fac 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -57,5 +57,10 @@ 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"