cargo-bylaw-0.1.0 is not a library.
Cargo Bylaw
Cargo Bylaw is an architecture enforcement framework for Rust. It provides a
Rust test API and a cargo bylaw command backed by the same semantic dependency
graph and rule engine.
Rules can constrain dependencies between modules, workspace crates, and external crates, define allowed layer directions, and reject dependency cycles.
= 1
[]
= ["shop::domain::**"]
[]
= ["shop::persistence::**"]
[[]]
= "domain-is-internal"
= "forbid-dependencies"
= "domain"
= "persistence"
= "actual"
cargo bylaw check
The same rule model is available from normal Rust tests:
use *;
See examples/model-boundaries for a complete
domain, persistence, contract, API, and composition-root example.
Documentation site
The guide is an mdBook deployed through GitHub Pages. Build it locally with:
cargo install mdbook --version 0.5.4 --locked
mdbook serve --open
Documentation
License
Licensed under either of:
at your option.