Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
Cadey Ratio | 28ab03a516 |
10
README.md
10
README.md
|
@ -1,4 +1,4 @@
|
|||
# rlue_serde
|
||||
# mlua_serde
|
||||
|
||||
Implementation of [serde](https://serde.rs/) Serializer/Deserializer for
|
||||
[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
|
||||
[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:
|
||||
|
||||
```toml
|
||||
[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`
|
||||
|
@ -34,7 +34,7 @@ feature:
|
|||
|
||||
```toml
|
||||
[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:
|
||||
|
|
Loading…
Reference in New Issue