summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2021-06-19 14:56:49 +0100
committerAlex Orlenko <zxteam@protonmail.com>2021-06-19 15:00:04 +0100
commitb84c10fde682bfa079d2813e8927790b8506a0d6 (patch)
treeaffbd0339583c06196f9538add17f46708f2e00e
parentb49f9539b6e76e0ceb303373f7479851b8268287 (diff)
downloadmlua-b84c10fde682bfa079d2813e8927790b8506a0d6.zip
Update README (include publishing to luarocks section)
-rw-r--r--README.md13
1 files 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.