Update README (include publishing to luarocks section)

This commit is contained in:
Alex Orlenko 2021-06-19 14:56:49 +01:00
parent b49f9539b6
commit b84c10fde6
No known key found for this signature in database
GPG Key ID: 4C150C250863B96D
1 changed files with 11 additions and 2 deletions

View File

@ -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.