diff options
| author | dev <dev@example.com> | 2026-11-21 19:29:41 +0000 |
|---|---|---|
| committer | dev <dev@example.com> | 2026-11-21 19:29:41 +0000 |
| commit | bb1d533515c8f63faacb00b3ef59232cf2d4a1c5 (patch) | |
| tree | 94da9ecc261f28f12ac6e74b29b27f3aef4b1e77 /tests/architecture-budget.json | |
| parent | 0f18ebddc1c138c531e3e331786c7fa917d9186f (diff) | |
| download | aur-build-bb1d533515c8f63faacb00b3ef59232cf2d4a1c5.tar.gz aur-build-bb1d533515c8f63faacb00b3ef59232cf2d4a1c5.zip | |
pipeline,sandbox,shims: thirty-two more markers the compiler was willing to take
The whole `shims` module is behind `test-support`, so its thirteen `pub(crate)`
items were invisible to a release build already — but `pub(crate)` still made
each of them part of the crate's interface to every other module, and none of
them had a reader outside the file that declares it. `manifest`, `record`,
`split_version`, `valid_db_arg`, `DB_SUFFIXES` and the nine tool entry points
are now private to `src/shims/mod.rs`, which is where the shim binaries reach
them through the module's own `pub` surface.
`pipeline` went 16 -> 4 and `sandbox` 16 -> 9. Two refusals are worth the
sentence: `SourceIdentity` is the type of the `pub(crate)` field `Ctx::src`, and
a field may not be more reachable than its type, so making it private is the
`private_interfaces` warning rather than a legal narrowing. `provision_request`
is declared inside the private `kata_backend` module and called from the
sibling `#[cfg(test)] mod tests`, and privacy does not cross to a sibling —
E0624. Both are argued in `over_visibility.allowlist` now instead of sitting
unexplained.
`LOW` in `review` is the same sibling case one level up: it lives in the
`pub mod level` nested in risk.rs and the scorer in the parent module reads
`level::LOW`, so `pub(crate)` is the narrowest thing that reaches, given that
this crate does not admit `pub(super)`.
priv 149 -> 117, overwide 21 -> 0 unargued. `cargo check` clean under both
profiles with no new warnings; tests/pipeline.rs, remote_agent.rs, kata.rs,
approve.rs, shims.rs and world.rs pass (62 tests), and `cargo test --test
architecture` is 16 passed.
Diffstat (limited to 'tests/architecture-budget.json')
| -rw-r--r-- | tests/architecture-budget.json | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/architecture-budget.json b/tests/architecture-budget.json index d600d39..13dbe01 100644 --- a/tests/architecture-budget.json +++ b/tests/architecture-budget.json @@ -263,8 +263,8 @@ "largest": 472, "largest_file": "src/pipeline/steps.rs", "lines": 1410, - "overwide": 8, - "priv": 16, + "overwide": 0, + "priv": 4, "pub": 21, "test": 6 }, @@ -323,8 +323,8 @@ "largest": 507, "largest_file": "src/sandbox/kata.rs", "lines": 1408, - "overwide": 6, - "priv": 16, + "overwide": 0, + "priv": 9, "pub": 21, "test": 7 }, @@ -335,8 +335,8 @@ "largest": 655, "largest_file": "src/shims/mod.rs", "lines": 655, - "overwide": 7, - "priv": 13, + "overwide": 0, + "priv": 0, "pub": 8, "test": 4 }, @@ -418,13 +418,13 @@ "lib": 0, "main": 0, "ops": 0, - "pipeline": 8, + "pipeline": 0, "pkginfo": 0, "pkgver": 0, "recipe": 0, "review": 0, - "sandbox": 6, - "shims": 7, + "sandbox": 0, + "shims": 0, "time": 0, "urlutil": 0, "usecase": 0, @@ -432,9 +432,9 @@ } }, "test_surface": { - "already-gated": 22, + "already-gated": 28, "interface": 1, - "narrowed": 13, + "narrowed": 7, "total": 36 }, "totals": { @@ -445,8 +445,8 @@ "largest": 699, "largest_file": "src/config.rs", "lines": 15671, - "overwide": 21, - "priv": 149, + "overwide": 0, + "priv": 117, "pub": 448, "test": 49 } |
