Expand description
Layout invariants — the Rust-enforced package structure.
This is the caixa analog of Cargo’s implicit src/lib.rs vs src/main.rs
rule: the Rust type system dictates the package shape, and the invariant
checker runs before any build step. StandardLayout encodes the
canonical layout:
caixa.lisp— always requiredlib/<nome>.lisp— required when:kind Bibliotecaand:bibliotecasis empty- each
:bibliotecas— must resolve on disk - each
:exe— must resolve on disk, underexe/ - each
:servicos— must resolve on disk, underservicos/
Filesystem I/O is injected through StandardLayout::with_path_exists
so tests can run without touching disk.
Structs§
- Standard
Layout - The default layout contract.
Enums§
Traits§
- Layout
Invariants - Contract — a caixa layout checker.