9 releases

Uses old Rust 2015

0.0.10 Jan 10, 2017
0.0.9 Jul 8, 2016
0.0.8 Jun 27, 2015
0.0.7 May 8, 2015
0.0.2 Nov 21, 2014

#9 in #lua-bindings

Download history 23/week @ 2024-12-07 21/week @ 2024-12-14 1/week @ 2024-12-21 1/week @ 2024-12-28 9/week @ 2025-01-04 10/week @ 2025-01-11 13/week @ 2025-01-18 7/week @ 2025-01-25 22/week @ 2025-02-01 40/week @ 2025-02-08 23/week @ 2025-02-15 34/week @ 2025-02-22 39/week @ 2025-03-01 157/week @ 2025-03-08 325/week @ 2025-03-15 141/week @ 2025-03-22

666 downloads per month
Used in 3 crates

MIT license

675KB
17K SLoC

C 15K SLoC // 0.1% comments Rust 2K SLoC // 0.1% comments

rust-lua53 Build Status Documentation

Aims to be complete Rust bindings for Lua 5.3 and beyond. Currently, master is tracking Lua 5.3.3.

Requires a Unix-like environment. On Windows, MSYS2 is supported.

You will need:

  • wget (fetch on FreeBSD/Dragonfly, curl on MacOS)
  • tar
  • make
  • gcc

Using crates.io

Add this to your Cargo.toml:

[dependencies]
lua = "*"

Using git

Add this to your Cargo.toml:

[dependencies.lua]
git = "https://github.com/jcmoyer/rust-lua53"

Example

extern crate lua;

fn main() {
  let mut state = lua::State::new();
  state.open_libs();
  state.do_string("print('hello world!')");
}

License

Licensed under the MIT License, which is the same license Lua is distributed under. Refer to LICENSE.md for more information.


lib.rs:

Rust bindings for Lua 5.3 and beyond documentation. Original Lua library documentation here.

Dependencies