From 0f18ebddc1c138c531e3e331786c7fa917d9186f Mon Sep 17 00:00:00 2001 From: dev Date: Sat, 21 Nov 2026 19:27:26 +0000 Subject: http: ten request and response helpers were never crate-internal, just unmarked `http` declares 81 `pub(crate)` items, the densest cluster in the tree, and the census called every one of them the good state. Ten of them are not crate-internal at all: `State`, `Req`, `Res`, `logout`, and the five accessors on `Req` and constructors on `Res` are named only from `http/mod.rs`, the file that declares them. The router dispatches through them in the same file; the `pub(crate)` was describing an outside caller that does not exist. `cookie` is the one worth naming: it is the auth-cookie helper, it looked used from `http/routes/mod.rs`, and what is used there is a *field* named `cookie` on `Req`. A word-match census cannot tell those apart, which is the whole reason this pass was done by stripping markers and compiling rather than by reading the census output. priv 159 -> 149 (http 81 -> 71), overwide 22 -> 21. `cargo check` clean under both profiles, no new warnings; tests/http.rs, surfaces.rs, notices.rs and invariants.rs all pass (43 tests). --- tests/architecture-budget.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/architecture-budget.json') diff --git a/tests/architecture-budget.json b/tests/architecture-budget.json index 18e33c5..d600d39 100644 --- a/tests/architecture-budget.json +++ b/tests/architecture-budget.json @@ -215,8 +215,8 @@ "largest": 565, "largest_file": "src/http/routes/pages.rs", "lines": 2035, - "overwide": 1, - "priv": 81, + "overwide": 0, + "priv": 71, "pub": 17, "test": 5 }, @@ -414,7 +414,7 @@ "fetch": 0, "git": 0, "hash": 0, - "http": 1, + "http": 0, "lib": 0, "main": 0, "ops": 0, @@ -432,9 +432,9 @@ } }, "test_surface": { - "already-gated": 21, + "already-gated": 22, "interface": 1, - "narrowed": 14, + "narrowed": 13, "total": 36 }, "totals": { @@ -445,8 +445,8 @@ "largest": 699, "largest_file": "src/config.rs", "lines": 15671, - "overwide": 22, - "priv": 159, + "overwide": 21, + "priv": 149, "pub": 448, "test": 49 } -- cgit v1.2.3