Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
rust-lua53
Aims to be complete Rust bindings for Lua 5.3 and beyond. Currently, master
is tracking Lua 5.3.0
.
Requires:
- gcc
- bash
- a Lua 5.3 installation
NOTE: The build process requires Lua 5.3 headers for code generation
purposes. If you built and installed normally, these will be located in
/usr/local/include
in both Linux and Windows MSYS2 environments. In this
case, the build script will find them automatically. If for some reason these
headers are elsewhere, you will need to export an environment variable called
LUA_INCLUDE
that points to a directory containing these
files.
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"
Manual
If for some reason you're not using cargo (perhaps in Lua spirit!), you can clone this repository and build it yourself:
git clone https://github.com/jcmoyer/rust-lua53.git
cd rust-lua53
chmod +x ./prebuild.sh
./prebuild.sh
rustc src/lib.rs
Example
extern crate lua;
License
Licensed under the MIT License, which is the same license Lua is distributed
under. Refer to LICENSE.md
for more information.