https://github.com/mlua-rs/mlua-stdlib
Standard library bindings for mlua
https://github.com/mlua-rs/mlua-stdlib
Last synced: 6 months ago
JSON representation
Standard library bindings for mlua
- Host: GitHub
- URL: https://github.com/mlua-rs/mlua-stdlib
- Owner: mlua-rs
- License: mit
- Created: 2024-02-10T11:53:13.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-09-23T09:39:20.000Z (6 months ago)
- Last Synced: 2025-09-23T11:36:27.190Z (6 months ago)
- Language: Rust
- Homepage:
- Size: 60.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mlua-stdlib
[](https://crates.io/crates/mlua-stdlib)
[](https://docs.rs/mlua-stdlib)
[](https://codecov.io/gh/mlua-rs/mlua-stdlib)
A standard library for [mlua](https://github.com/mlua-rs/mlua), providing common functionality and utilities for Lua scripting in Rust applications.
## Features
mlua-stdlib provides a collection of modules that extend Lua with useful functionality:
- **assertions** - Useful assertion functions for testing and validation
- **testing** - A testing framework with hooks and reporting
- **env** - Environment functions
With the following optional modules:
- **json** (feature) - JSON encoding/decoding
- **regex** (feature) - Regular expressions support
- **yaml** (feature) - YAML encoding/decoding
The following feature flags are passed to `mlua`, when enabled:
- `lua51`, `lua52`, `lua53`, `lua54`, `luau` - Lua version selection
- `send` - Enable `Send+Sync` support
- `vendored` - Use vendored Lua
## Documentation
The project is still in early stages, the API documentation will be published on [docs.rs](https://docs.rs/mlua-stdlib) or in the repository once stabilized.
## Examples
Check the `tests/lua/` directory for comprehensive examples of how to use each module.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.