@@ -38,22 +38,21 @@ WebAssembly (WASM) is supported through `wasm32-unknown-emscripten` target for a
38
38
` mlua ` uses feature flags to reduce the amount of dependencies, compiled code and allow to choose only required set of features.
39
39
Below is a list of the available feature flags. By default ` mlua ` does not enable any features.
40
40
41
- * ` lua54 ` : activate Lua [ 5.4] support
42
- * ` lua53 ` : activate Lua [ 5.3] support
43
- * ` lua52 ` : activate Lua [ 5.2] support
44
- * ` lua51 ` : activate Lua [ 5.1] support
45
- * ` luajit ` : activate [ LuaJIT] support
46
- * ` luajit52 ` : activate [ LuaJIT] support with partial compatibility with Lua 5.2
47
- * ` luau ` : activate [ Luau] support (auto vendored mode)
48
- * ` luau-jit ` : activate [ Luau] support with JIT backend.
49
- * ` luau-vector4 ` : activate [ Luau] support with 4-dimensional vector.
41
+ * ` lua54 ` : enable Lua [ 5.4] support
42
+ * ` lua53 ` : enable Lua [ 5.3] support
43
+ * ` lua52 ` : enable Lua [ 5.2] support
44
+ * ` lua51 ` : enable Lua [ 5.1] support
45
+ * ` luajit ` : enable [ LuaJIT] support
46
+ * ` luajit52 ` : enable [ LuaJIT] support with partial compatibility with Lua 5.2
47
+ * ` luau ` : enable [ Luau] support (auto vendored mode)
48
+ * ` luau-jit ` : enable [ Luau] support with JIT backend.
49
+ * ` luau-vector4 ` : enable [ Luau] support with 4-dimensional vector.
50
50
* ` vendored ` : build static Lua(JIT) library from sources during ` mlua ` compilation using [ lua-src] or [ luajit-src] crates
51
51
* ` module ` : enable module mode (building loadable ` cdylib ` library for Lua)
52
52
* ` async ` : enable async/await support (any executor can be used, eg. [ tokio] or [ async-std] )
53
- * ` send ` : make ` mlua::Lua ` transferable across thread boundaries (adds [ ` Send ` ] requirement to ` mlua::Function ` and ` mlua::UserData ` )
53
+ * ` send ` : make ` mlua::Lua: Send + Sync ` (adds [ ` Send ` ] requirement to ` mlua::Function ` and ` mlua::UserData ` )
54
54
* ` serialize ` : add serialization and deserialization support to ` mlua ` types using [ serde] framework
55
55
* ` macros ` : enable procedural macros (such as ` chunk! ` )
56
- * ` parking_lot ` : support UserData types wrapped in [ parking_lot] 's primitives (` Arc<Mutex> ` and ` Arc<RwLock> ` )
57
56
58
57
[ 5.4 ] : https://www.lua.org/manual/5.4/manual.html
59
58
[ 5.3 ] : https://www.lua.org/manual/5.3/manual.html
@@ -67,7 +66,6 @@ Below is a list of the available feature flags. By default `mlua` does not enabl
67
66
[ async-std ] : https://github.com/async-rs/async-std
68
67
[ `Send` ] : https://doc.rust-lang.org/std/marker/trait.Send.html
69
68
[ serde ] : https://github.com/serde-rs/serde
70
- [ parking_lot ] : https://github.com/Amanieu/parking_lot
71
69
72
70
### Async/await support
73
71
@@ -91,7 +89,7 @@ cargo run --example async_http_client --features=lua54,async,macros
91
89
cargo run --example async_http_reqwest --features=lua54,async,macros,serialize
92
90
93
91
# async http server
94
- cargo run --example async_http_server --features=lua54,async,macros
92
+ cargo run --example async_http_server --features=lua54,async,macros,send
95
93
curl -v http://localhost:3000
96
94
```
97
95
0 commit comments