From b84c10fde682bfa079d2813e8927790b8506a0d6 Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Sat, 19 Jun 2021 14:56:49 +0100 Subject: [PATCH] Update README (include publishing to luarocks section) --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7cec416..4bf5df4 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ Add to `Cargo.toml` : ``` toml [dependencies] -mlua = { version = "0.6.0-beta", features = ["lua53", "vendored"] } +mlua = { version = "0.6", features = ["lua53", "vendored"] } ``` `main.rs` @@ -132,7 +132,7 @@ Add to `Cargo.toml` : crate-type = ["cdylib"] [dependencies] -mlua = { version = "0.6.0-beta", features = ["lua53", "vendored", "module"] } +mlua = { version = "0.6", features = ["lua53", "vendored", "module"] } ``` `lib.rs` : @@ -185,6 +185,15 @@ MSVC with `LUA_INC` / `LUA_LIB` / `LUA_LIB_NAME` environment variables. More details about compiling and linking Lua modules can be found on the [Building Modules](http://lua-users.org/wiki/BuildingModules) page. +### Publishing to luarocks.org + +There is a LuaRocks build backend for mlua modules [`luarocks-build-rust-mlua`]. + +Modules written in Rust and published to luarocks: +- [`lua-ryaml`](https://github.com/khvzak/lua-ryaml) + +[`luarocks-build-rust-mlua`]: https://luarocks.org/modules/khvzak/luarocks-build-rust-mlua + ## Safety One of the `mlua` goals is to provide *safe* API between Rust and Lua.