Lua runtime with plugin system for the rhi ecosystem.
| Crate | Description |
|---|---|
moonlet-core |
Core runtime infrastructure |
moonlet-lua |
Lua runtime with Integration trait |
| Crate | Description |
|---|---|
moonlet-moss |
Adds Moss code analysis to Lua |
moonlet-lotus |
Adds Lotus world state to Lua |
use moonlet_lua::Runtime;
use moonlet_moss::MossIntegration;
let runtime = Runtime::new()?;
runtime.register(&MossIntegration::new("."))?;
// Now Lua scripts can use moss.view(), moss.edit(), moss.analyze.*, etc.
runtime.run_file(Path::new("scripts/analyze.lua"))?;nix develop # Enter dev shell
cargo test # Run tests
cargo clippy # LintMIT OR Apache-2.0