Skip to main content

Crate weaveffi_core

Crate weaveffi_core 

Source
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 Api that every language backend consumes.
pkg
Shared package-identity resolution.
utils
validate
IDL validation. This module owns the ValidationError catalog and the validate_api entry point; the work is split across submodules: rules (per-module checks), resolve (type-reference qualification), diagnostic (miette span attachment), and warnings (advisory lints).

Macros§

impl_generator_via_backend
Implement the object-safe Generator trait for a type that implements LanguageBackend, delegating to the shared driver.