April 2025 Rustacean meetup

April 2025 Rustacean meetup

Vishal Kumar

@vishalgem

Embedding lua in Rust Program - mlua & interoperability with serde json

Submitted Mar 5, 2025

  • Why Embed Lua?
  • Introducing mlua
  • Interoperability Importance
  • Serde JSON
  • Setting up the Environment
  • Creating a Lua Context
  • Executing Lua Code
  • Calling Rust Functions from Lua
  • Retrieving Lua Values in Rust
  • Serializing Rust Data to Lua
  • Deserializing Lua Data to Rust
  • Practical Example

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hosted by

A community of Rust language contributors and end-users from Bangalore. We have presence on the following telegram channels https://t.me/RustIndia https://t.me/fpncr LinkedIn: https://www.linkedin.com/company/rust-india/ Twitter (not updated frequently): https://twitter.com/rustlangin more