Skip to content

rhi-zone/moonlet

moonlet

Lua runtime with plugin system for the rhi ecosystem.

Crates

Crate Description
moonlet-core Core runtime infrastructure
moonlet-lua Lua runtime with Integration trait

Integrations

Crate Description
moonlet-moss Adds Moss code analysis to Lua
moonlet-lotus Adds Lotus world state to Lua

Usage

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"))?;

Development

nix develop        # Enter dev shell
cargo test         # Run tests
cargo clippy       # Lint

License

MIT OR Apache-2.0

About

Lua runtime with plugin system

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •