ArchUnit equivalent for Rust (arch_unit_rs)?

In the last years people raised questions about arch testing (e.g. Of Architecture, Traits and Unit Testing - #21 by nrxus). In other languages the go to solution to this topic are ArchUnit (originally created for Java) tools:

IMO it would be reasonable to initiate the discussion about an official Rust provided tool right now.

Implementation wise with the advent of agentic workflows involving Spec Driven Development (SDD) (e.g. OpenSpec) + AI agents the time required for creating a tool should be pretty little as long as a good spec is feed as input.

If you're looking for an "official Rust provided tool" specifically, you're probably out of luck. The Rust project has limited time and resources to spend on its already large repertoire of projects, and this is exactly the sort of thing they like to leave to the community (think cargo nextest). But also, if you expect the Rust project to start using gen AI, I sincerely hope that doesn't happen. Up to now, Rust's standards have been rather high, and I think that's been a great thing for the language and ecosystem.

However, I do think that more and better testing frameworks would be a great idea. Rust's built-in testing is alright, but it's very barebones (a good thing in its own right).