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/bin/gpg.rs | 2 -- src/bin/makechrootpkg.rs | 2 -- src/bin/makepkg.rs | 2 -- src/bin/mkarchroot.rs | 2 -- src/bin/pacman.rs | 2 -- src/bin/repo-add.rs | 2 -- src/bin/sandbox-agent.rs | 6 ------ 7 files changed, 18 deletions(-) (limited to 'src/bin') diff --git a/src/bin/gpg.rs b/src/bin/gpg.rs index e9df5e3..da8c3db 100644 --- a/src/bin/gpg.rs +++ b/src/bin/gpg.rs @@ -1,5 +1,3 @@ -//! Toolchain shim: `gpg` (§16a). See `aur_build::shims`. - fn main() { std::process::exit(aur_build::shims::run("gpg")); } diff --git a/src/bin/makechrootpkg.rs b/src/bin/makechrootpkg.rs index 00569fb..c190e8b 100644 --- a/src/bin/makechrootpkg.rs +++ b/src/bin/makechrootpkg.rs @@ -1,5 +1,3 @@ -//! Toolchain shim: `makechrootpkg` (§16a). See `aur_build::shims`. - fn main() { std::process::exit(aur_build::shims::run("makechrootpkg")); } diff --git a/src/bin/makepkg.rs b/src/bin/makepkg.rs index 1c5cd7f..3398f5d 100644 --- a/src/bin/makepkg.rs +++ b/src/bin/makepkg.rs @@ -1,5 +1,3 @@ -//! Toolchain shim: `makepkg` (§16a). See `aur_build::shims`. - fn main() { std::process::exit(aur_build::shims::run("makepkg")); } diff --git a/src/bin/mkarchroot.rs b/src/bin/mkarchroot.rs index a4be6eb..33f2577 100644 --- a/src/bin/mkarchroot.rs +++ b/src/bin/mkarchroot.rs @@ -1,5 +1,3 @@ -//! Toolchain shim: `mkarchroot` (§16a). See `aur_build::shims`. - fn main() { std::process::exit(aur_build::shims::run("mkarchroot")); } diff --git a/src/bin/pacman.rs b/src/bin/pacman.rs index 5f7a357..e42b50b 100644 --- a/src/bin/pacman.rs +++ b/src/bin/pacman.rs @@ -1,5 +1,3 @@ -//! Toolchain shim: `pacman` (§16a). See `aur_build::shims`. - fn main() { std::process::exit(aur_build::shims::run("pacman")); } diff --git a/src/bin/repo-add.rs b/src/bin/repo-add.rs index 6714de6..ce74b24 100644 --- a/src/bin/repo-add.rs +++ b/src/bin/repo-add.rs @@ -1,5 +1,3 @@ -//! Toolchain shim: `repo-add` (§16a). See `aur_build::shims`. - fn main() { std::process::exit(aur_build::shims::run("repo-add")); } diff --git a/src/bin/sandbox-agent.rs b/src/bin/sandbox-agent.rs index 4e959a9..ce34d50 100644 --- a/src/bin/sandbox-agent.rs +++ b/src/bin/sandbox-agent.rs @@ -1,9 +1,3 @@ -//! The ephemeral sandbox agent — see `aur_build::sandbox::agent`. -//! -//! This is the piece that runs *inside* the disposable sandbox (a Kata -//! container, a throwaway VM, a test's temp process). It dials the hub, -//! serves exactly one lease, and dies with it. - use std::time::Duration; fn main() { -- cgit v1.2.3