Skip to main content

LAYOUT_DIR_EXE

Constant LAYOUT_DIR_EXE 

Source
pub const LAYOUT_DIR_EXE: &str = "exe";
Expand description

Canonical caixa-root-relative directory name housing every crate::CaixaKind::Binario caixa’s exe/<name> entry (and every :exe ("exe/tool" …) per-entry source path the M0 :kind Binario typed slot admits). Peer of LAYOUT_DIR_LIB / LAYOUT_DIR_SERVICOS on the sibling M0 per-CaixaKind on-disk-directory-name axes; see LAYOUT_DIR_LIB for the shared lift rationale.

crate::LayoutInvariants::verify joins root with this const to reconstruct the sandbox-root the crate::LayoutError::ExeOutsideDir emission gates every declared :exe entry against — a :exe entry whose resolved path escapes root.join(LAYOUT_DIR_EXE) surfaces ExeOutsideDir(<path>) at feira build time rather than silently reaching outside the caixa’s sandbox at OCI-build / nix-build time. Byte-identical (by design) to LAYOUT_MISSING_ENTRY_KIND_EXE — the M0 :kind Binario on-disk-directory-name and the crate::LayoutError::MissingEntry kind: leaf-kind categorization label share the same three-byte scalar because both name the same axis (the exe/ sub-tree), a coincidence the pin test layout_dir_exe_matches_layout_missing_entry_kind_exe makes load-bearing so a rebrand touching either axis without the other trips at build time rather than surfacing at crate::LayoutInvariants::verify time as a mismatched MissingEntry.kind diagnostic naming a stale label.