You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+11
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,17 @@ This works using Lua [coroutines](https://www.lua.org/manual/5.3/manual.html#2.6
84
84
-[HTTP Server](examples/async_http_server.rs)
85
85
-[TCP Server](examples/async_tcp_server.rs)
86
86
87
+
88
+
**shell command example**:
89
+
```shell
90
+
# async http client
91
+
cargo run --example async_http_client --features="async macros lua54"
92
+
93
+
# async http server
94
+
cargo run --example async_http_server --features="async macros lua54"
95
+
curl http://localhost:3000
96
+
```
97
+
87
98
### Serialization (serde) support
88
99
89
100
With `serialize` feature flag enabled, `mlua` allows you to serialize/deserialize any type that implements [`serde::Serialize`] and [`serde::Deserialize`] into/from [`mlua::Value`]. In addition `mlua` provides [`serde::Serialize`] trait implementation for it (including `UserData` support).
0 commit comments