Plux Lua Manager
A high-performance Lua plugin manager for Plux, providing a safe and efficient way to load, manage, and interact with Lua plugins.
Installation
Add to your Cargo.toml:
[]
= { = "1.0.0", = ["derive"] }
= "0.1.1"
Features
The crate supports different Lua versions through feature flags:
lua54(default): Use Lua 5.4lua53: Use Lua 5.3lua52: Use Lua 5.2lua51: Use Lua 5.1
Quick Start
use ;
use *;
// Declaring a function for lua plugin
// Declaring a function for lua plugin
Plugin Structure
A typical plugin has the following structure:
my_plugin/
├── config.toml # Plugin configuration
├── main.lua # Main plugin code
└── ... # Additional Lua modules/resources
config.toml Example
= "my_plugin"
= "A sample plugin"
= "Your Name"
= "0.1.0"
# Dependencies
[]
= "^1.0.0"
# Optional dependencies
[]
= "^2.0.0"
main.lua Example
-- Declaring a function for Plux
-- Returning the functions to Plux
return
License
This project is licensed under the MIT License - see the LICENSE file for details.