diff options
| author | dev <dev@localhost> | 2026-11-20 16:49:20 +0000 |
|---|---|---|
| committer | dev <dev@localhost> | 2026-11-20 16:49:20 +0000 |
| commit | 28387a3b920d2ecff62d2ef267af6b875be9d28d (patch) | |
| tree | 247860f1d8019a32677c5cdcc43adb833bc2ea5d /tests/hash.rs | |
| parent | a0ebd201713ae5a5a871b46aa526ffc40770f4bc (diff) | |
| download | aur-build-28387a3b920d2ecff62d2ef267af6b875be9d28d.tar.gz aur-build-28387a3b920d2ecff62d2ef267af6b875be9d28d.zip | |
tools: census how wide each module's interface actually is
An interface is only as narrow as the items a module hands out, and nobody
had counted them: 585 pub items across 27 modules, 146 of which nothing
outside their own module ever names. That is not an interface, it is a hole
in the module boundary, and every one of them is a thing a later refactor
cannot change without a grep across the crate.
The census counts pub items per module, how many of them are dead, how many
of those a test does name (the integration tests are separate crates, so a
name only they use is genuinely pub and the honest thing is to count it
rather than pretend it is private), the glob re-exports that flatten a
namespace, and the crate:: edge set between modules.
The edge set is already acyclic, which is the useful surprise: a layer map
can be declared over the graph as it stands rather than after breaking
something. It also says where the width is — db hands out 226 items, http 68
of which 54 are dead — so the work has an order.
Baseline for all of it: 273 tests passing, clippy -D warnings clean, release
build clean.
Diffstat (limited to 'tests/hash.rs')
0 files changed, 0 insertions, 0 deletions
