update docs

This commit is contained in:
Cadey Ratio 2021-04-17 22:24:39 -04:00
parent 60d8588dac
commit 28ab03a516
1 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# rlue_serde # mlua_serde
Implementation of [serde](https://serde.rs/) Serializer/Deserializer for Implementation of [serde](https://serde.rs/) Serializer/Deserializer for
[mlua::Value](https://docs.rs/mlua/0.4.1/mlua/enum.Value.html) [mlua::Value](https://docs.rs/mlua/0.4.1/mlua/enum.Value.html)
@ -18,15 +18,15 @@ To use `mlua_serde`, first add this to your `Cargo.toml`:
```toml ```toml
[dependencies] [dependencies]
mlua_serde = { version = "0.5", features = ["lua53"] } mlua_serde = { version = "0.6", features = ["lua53"] }
``` ```
You must choose between Lua 5.3 and Lua 5.4. To use Lua 5.4, change `lua53` for You must choose between Lua 5.1, 5.2, 5.3 and 5.4. To use Lua 5.4, change `lua53` for
`lua54` like this: `lua54` like this:
```toml ```toml
[dependencies] [dependencies]
mlua_serde = { version = "0.5", features = ["lua54"] } mlua_serde = { version = "0.6", features = ["lua54"] }
``` ```
If you don't have lua installed on your system for some reason, use the `vendored` If you don't have lua installed on your system for some reason, use the `vendored`
@ -34,7 +34,7 @@ feature:
```toml ```toml
[dependencies] [dependencies]
mlua_serde = { version = "0.5", features = ["lua53", "vendored"] } mlua_serde = { version = "0.6", features = ["lua53", "vendored"] }
``` ```
Next, you can use `to_value`/`from_value` functions to serialize/deserialize: Next, you can use `to_value`/`from_value` functions to serialize/deserialize: