diff options
author | Alex Orlenko <zxteam@protonmail.com> | 2021-06-19 14:56:49 +0100 |
---|---|---|
committer | Alex Orlenko <zxteam@protonmail.com> | 2021-06-19 15:00:04 +0100 |
commit | b84c10fde682bfa079d2813e8927790b8506a0d6 (patch) | |
tree | affbd0339583c06196f9538add17f46708f2e00e | |
parent | b49f9539b6e76e0ceb303373f7479851b8268287 (diff) | |
download | mlua-b84c10fde682bfa079d2813e8927790b8506a0d6.zip |
Update README (include publishing to luarocks section)
-rw-r--r-- | README.md | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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. |