Crate ezlua

source ·
Expand description

Ergonomic, efficient and Zero-cost rust bindings to Lua5.4

Features

  • Serialization (serde) support
  • Async function bindings support
  • Ergonomic binding for functions and userdata methods
  • Ergonomic stack values operation, you don’t need to pay attention to the stack details
  • Efficient: no auxiliary stack
  • Builtin bindings to rust standard library
  • nostd support

Limits

  • Nightly rust compiler needed (1.70+)
  • Only support lua5.4 currently

Examples

See tests

Modules

  • Builtin bindings for rust std and some third-party lib
  • Main implementation for type conversion between lua and rust
  • Error handling
  • Helpers to simplify the type conversion between rust and lua
  • Re-exports most types
  • serde utilities for lua
  • Implementation to userdata binding
  • Implementation to lua value

Macros