Expand description
Core logic: Generator trait, codegen orchestration, validation, and shared utilities.
Modules§
- abi
- The canonical WeaveFFI C ABI model.
- backend
- The language-backend framework.
- cabi
- Shared rendering of the C ABI declarations from a
BindingModel. - cache
- Content-hashing and per-generator caching for skip-if-unchanged builds.
- capabilities
- Per-target feature capability declarations and the loud-failure contract that replaces silent feature skipping.
- codegen
- Generator trait, dyn-erasure wrapper, and orchestration.
- errors
- Shared error-domain model and naming policy.
- model
- The binding model: a normalized, fully-lowered view of an
Apithat every language backend consumes. - pkg
- Shared package-identity resolution.
- utils
- validate
- IDL validation. This module owns the
ValidationErrorcatalog and thevalidate_apientry point; the work is split across submodules:rules(per-module checks),resolve(type-reference qualification),diagnostic(miette span attachment), andwarnings(advisory lints).
Macros§
- impl_
generator_ via_ backend - Implement the object-safe
Generatortrait for a type that implementsLanguageBackend, delegating to the shared driver.