Update README (include publishing to luarocks section)
This commit is contained in:
parent
b49f9539b6
commit
b84c10fde6
13
README.md
13
README.md
|
@ -97,7 +97,7 @@ Add to `Cargo.toml` :
|
||||||
|
|
||||||
``` toml
|
``` toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
mlua = { version = "0.6.0-beta", features = ["lua53", "vendored"] }
|
mlua = { version = "0.6", features = ["lua53", "vendored"] }
|
||||||
```
|
```
|
||||||
|
|
||||||
`main.rs`
|
`main.rs`
|
||||||
|
@ -132,7 +132,7 @@ Add to `Cargo.toml` :
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
mlua = { version = "0.6.0-beta", features = ["lua53", "vendored", "module"] }
|
mlua = { version = "0.6", features = ["lua53", "vendored", "module"] }
|
||||||
```
|
```
|
||||||
|
|
||||||
`lib.rs` :
|
`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.
|
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
|
## Safety
|
||||||
|
|
||||||
One of the `mlua` goals is to provide *safe* API between Rust and Lua.
|
One of the `mlua` goals is to provide *safe* API between Rust and Lua.
|
||||||
|
|
Loading…
Reference in New Issue