From e757979f1a2afdbe7146066345bb9acd19d3b151 Mon Sep 17 00:00:00 2001 From: aur-build Date: Thu, 19 Nov 2026 17:09:59 +0000 Subject: comments: say why, not what MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every module-level `//!` header is gone, and the comments that remained either re-explained the line below them or had grown into paragraphs. Density went from one comment line per 6.7 lines of code to one per 10. 827 insertions against 2194 deletions across 86 files. What survived: the invariants (I1-I12), the design cross-references into DESIGN.md, and the notes recording a bug that was found and fixed — those are the comments that carry weight, because they answer a question the code cannot answer about itself. What did not: restating a function signature in prose, and narration of the statement underneath. --- src/lib.rs | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index d4e69de..a284bf3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,10 +1,3 @@ -//! AUR Build Server — see DESIGN.md. -//! -//! One process, many threads, no async. The write path is: watcher detects a -//! change → candidate → human approval → build pipeline → atomic publish into a -//! signed pacman repo. Nothing reaches a consumer without an approval row -//! behind it (I1). - pub mod config; pub mod db; pub mod error; @@ -20,13 +13,9 @@ pub mod recipe; pub mod review; pub mod sandbox; /// The §16a fake toolchain: stand-ins for `makepkg`, `mkarchroot`, `gpg`, -/// `repo-add` and `pacman` so the whole step machine runs without root, network -/// or an Arch chroot. -/// -/// Test-only, and compiled out of a production build (§6 M-4): the module exists -/// only under the `test-support` feature, which nothing but this crate's own -/// dev-dependency enables, and the shim binaries declare the same feature. A -/// binary an operator runs cannot fake a build tool it cannot see. +/// `repo-add` and `pacman`, so the whole step machine runs without root, network +/// or an Arch chroot. Compiled out of a production build (§6 M-4): a binary an +/// operator runs cannot fake a build tool it cannot see. #[cfg(feature = "test-support")] pub mod shims; pub mod time; -- cgit v1.2.3