#lua #bindings #latest #api #version

sys lua-latest-sys

Unsafe bindings to latest Lua's C API (5.4.4)

3 releases

0.0.2 Oct 20, 2022
0.0.1 Oct 19, 2022
0.0.0 Oct 19, 2022

#27 in #latest

MIT license

800KB
20K SLoC

C 17K SLoC // 0.2% comments Rust 2K SLoC // 0.0% comments

lua-latest-sys

Unsafe Rust bindings for the latest Lua version (5.4.4).

Motivation

Lua is not a very backwards compatible friendly language[1][2].

The goal of this repository is to support the latest and only the latest version of the Lua language.

Example

Add the following line to your Cargo.toml file.

lua-latest-sys = "0.0.2"

Now you can utilize lua-latest-sys in your crate. For usage of this crate, please refer to the examples.

Creating the bindings

The bindings are generated with bindgen using the following command.

bindgen lua.hpp -o bindings.rs --no-layout-tests --size_t-is-usize --default-macro-constant-type signed

Dependencies