Expand description
Pure Rust implementation of Luau.
This is the main crate. It re-exports the parser, source model, checker, bytecode, VM, and VM extension API under stable namespaces.
ruau::vm: Runtime-capability-aware compilation, VM building, scoped values, host functions, and embedding ergonomics.ruau::syntax: Syntax tree, parser, source transforms, JSON AST document, and locations.ruau::source: Module identities and source providers.ruau::declaration: Declaration authoring model.ruau::source::fs: Native-only filesystem-backed module sources.ruau::typecheck: Source graphs, checker, diagnostics, schemas, and source queries.ruau::bytecode: Bytecode model, codec, validation, and raw compiler APIs.ruau::surface: Validated runtime and checker surface configuration.ruau::session: Target-neutral retained lifecycle and optional native shared runtime.ruau::eval: Native JSON-shaped source evaluation.ruau::executor: Native bounded multi-tenant request executor.ruau::module: Declaration-coupled native-module authoring.
The optional derive feature enables IntoLua/FromLua derives. The
optional json-module feature provides [module::json], a declaration-
coupled native JSON module.
§Export paths
Each Ruau workspace item has one public path. Workspace crates are exposed
as namespaces here, but items are not re-exported between those namespaces.
If a type belongs to ruau::vm, name it there; if it belongs to
ruau::surface, name it there. The exception is foreign types that appear
in public signatures, which may be re-exported at their point of use so
embedders do not need to add a dependency only to name a return or argument
type.
Re-exports§
pub use ruau_bytecode as bytecode;pub use ruau_syntax as syntax;pub use ruau_surface as surface;pub use ruau_vm as vm;pub use ruau_executor as executor;
Modules§
- declaration
- Typed Luau declaration authoring model.
- eval
- Native source-evaluation conveniences.
- module
- Declaration-coupled native-module authoring. Declaration-coupled native-module authoring.
- session
- Retained session lifecycle and generational handles.
- source
- Module identity and async-first module source reads.
- typecheck
- Type checking, diagnostics, schema extraction, views, and source queries.