A standard library for mlua, providing common functionality and utilities for Lua scripting in Rust applications.
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
- http (feature) - HTTP client and server utilities
- task (feature) - Async task management and execution
- net (feature) - Networking support
- tcp - TCP client and server sockets
- udp - UDP sockets for connectionless communication
- unix - Unix domain sockets (Unix platforms only)
- tls (feature) - TLS/SSL support for secure connections
The following feature flags are passed to mlua, when enabled:
lua51,lua52,lua53,lua54,luau- Lua version selectionsend- EnableSend+Syncsupportvendored- Use vendored Lua
The project is still in early stages, the API documentation will be published on docs.rs or in the repository once stabilized.
Check the tests/lua/ directory for comprehensive examples of how to use each module.
This project is licensed under the MIT License - see the LICENSE file for details.