What problem does it solve?
Alef eliminates the repetitive, error-prone work of manually writing and keeping multi-language bindings in sync with a Rust codebase, so your generated APIs stay accurate as your Rust sources evolve.
Core Features & Use Cases
- One config, many languages: Generate fully-typed language bindings from a single Rust-focused source-of-truth configuration for 16 backends (e.g., Python, Node/TypeScript, WASM, Ruby, PHP, Go, Java, C#, Kotlin, Elixir, Gleam, R, Swift, Dart, Zig, C).
- End-to-end pipeline: Extract API surface, generate bindings and type stubs, scaffold packages, generate per-language READMEs/docs, and optionally create fixture-driven e2e test suites.
- CI-friendly freshness guarantees: Use verify/diff to detect stale generated outputs via embedded per-file hashes, preventing silently diverging bindings across languages.
- Advanced interoperability patterns: Configure DTO styles, trait bridges, adapter patterns, FFI layers, version syncing, and pre-commit hooks to fit real-world library publishing workflows.
Quick Start
Run alef generate to produce the configured language bindings from your Rust crate and alef.toml configuration.