alef 0.24.14

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Service-API codegen for the NAPI-RS (Node.js/TypeScript) backend.
//!
//! Generates Rust napi glue and idiomatic TypeScript service wrappers for
//! [`crate::core::ir::ServiceDef`] entries.

mod assembly;
mod helpers;
mod rust_glue;
mod typescript;

pub use assembly::generate;
pub(super) use rust_glue::gen_service_rs;
pub(super) use typescript::gen_service_ts;

#[cfg(test)]
#[path = "service_api/tests.rs"]
mod tests;