Skip to main content

Crate alef

Crate alef 

Source
Expand description

alef — polyglot binding generator.

Top-level module re-exports for the consolidated alef crate. Each module corresponds to one of the former workspace member crates (alef-core, alef-codegen, …). See README and CHANGELOG (v0.18.0) for the consolidation rationale.

§Extension API

Consumers who need domain-specific codegen (e.g. HTTP service bindings) implement Extension and call run_with_extensions instead of main:

fn main() -> std::process::ExitCode {
    alef::run_with_extensions(vec![])
}

Re-exports§

pub use core::extension::Extension;
pub use core::extension::ExtensionConfig;
pub use core::template_env::TemplateEnv;
pub use extensions::template::TemplateExtension;

Modules§

adapters
Adapter layer for connecting language-specific patterns to alef’s backend trait. Handles callback bridges and custom registrations.
backends
Language-specific binding-generator backends.
bin_cli
cli
CLI entry surface for the alef binary.
codegen
Shared code generation utilities for all language backends. Provides struct/enum/function generators, type mapping, and conversion helpers.
core
Core types and configuration for alef polyglot binding generator. Defines IR types, config schema, and backend trait.
docs
API reference documentation generator for alef polyglot bindings.
e2e
Fixture-driven e2e test generation for alef.
extensions
extract
Rust source extraction for alef – parses pub API into IR.
publish
Publish pipeline for alef — vendoring, building, and packaging artifacts for distribution across language package registries.
readme
README generator for alef.
scaffold
Package scaffolding generator for alef.
snippets

Functions§

run_with_extensions
Run the alef CLI, threading the given extensions through the pipeline.