2017-05-21 19:50:59 -04:00
|
|
|
[package]
|
2019-10-01 11:11:12 -04:00
|
|
|
name = "mlua"
|
2023-06-07 09:40:49 -04:00
|
|
|
version = "0.9.0-beta.3" # remember to update mlua_derive
|
2019-10-01 11:11:12 -04:00
|
|
|
authors = ["Aleksandr Orlenko <zxteam@pm.me>", "kyren <catherine@chucklefish.org>"]
|
2022-06-06 10:40:29 -04:00
|
|
|
edition = "2021"
|
2019-10-01 11:11:12 -04:00
|
|
|
repository = "https://github.com/khvzak/mlua"
|
|
|
|
documentation = "https://docs.rs/mlua"
|
2017-05-22 03:06:33 -04:00
|
|
|
readme = "README.md"
|
2022-06-06 10:59:28 -04:00
|
|
|
keywords = ["lua", "luajit", "luau", "async", "scripting"]
|
2020-04-17 17:38:01 -04:00
|
|
|
categories = ["api-bindings", "asynchronous"]
|
2017-05-22 03:06:33 -04:00
|
|
|
license = "MIT"
|
2019-11-04 17:17:55 -05:00
|
|
|
description = """
|
2022-03-20 21:37:08 -04:00
|
|
|
High level bindings to Lua 5.4/5.3/5.2/5.1 (including LuaJIT) and Roblox Luau
|
2021-10-04 18:29:20 -04:00
|
|
|
with async/await features and support of writing native Lua modules in Rust.
|
2019-11-04 17:17:55 -05:00
|
|
|
"""
|
2017-05-21 19:50:59 -04:00
|
|
|
|
2020-04-17 18:27:41 -04:00
|
|
|
[package.metadata.docs.rs]
|
2023-03-30 18:18:10 -04:00
|
|
|
features = ["lua54", "vendored", "async", "send", "serialize", "macros", "parking_lot", "unstable"]
|
2020-12-29 20:43:00 -05:00
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
2020-04-17 18:27:41 -04:00
|
|
|
|
2019-10-01 13:11:51 -04:00
|
|
|
[workspace]
|
|
|
|
members = [
|
|
|
|
"mlua_derive",
|
2023-04-12 18:23:34 -04:00
|
|
|
"mlua-sys",
|
2019-10-01 13:11:51 -04:00
|
|
|
]
|
|
|
|
|
2019-10-14 17:21:30 -04:00
|
|
|
[features]
|
2023-04-12 18:23:34 -04:00
|
|
|
lua54 = ["ffi/lua54"]
|
|
|
|
lua53 = ["ffi/lua53"]
|
|
|
|
lua52 = ["ffi/lua52"]
|
|
|
|
lua51 = ["ffi/lua51"]
|
|
|
|
luajit = ["ffi/luajit"]
|
|
|
|
luajit52 = ["luajit", "ffi/luajit52"]
|
|
|
|
luau = ["ffi/luau"]
|
2023-05-24 14:04:38 -04:00
|
|
|
luau-jit = ["luau", "ffi/luau-codegen"]
|
2023-06-20 07:50:06 -04:00
|
|
|
luau-vector4 = ["luau", "ffi/luau-vector4"]
|
2023-04-12 18:23:34 -04:00
|
|
|
vendored = ["ffi/vendored"]
|
|
|
|
module = ["mlua_derive", "ffi/module"]
|
2023-05-28 05:32:50 -04:00
|
|
|
async = ["futures-util"]
|
2020-05-06 08:18:04 -04:00
|
|
|
send = []
|
2023-01-05 16:32:15 -05:00
|
|
|
serialize = ["serde", "erased-serde", "serde-value"]
|
2021-05-05 16:55:49 -04:00
|
|
|
macros = ["mlua_derive/macros"]
|
2022-12-19 17:11:52 -05:00
|
|
|
unstable = []
|
2019-10-14 17:21:30 -04:00
|
|
|
|
2017-08-02 16:33:48 -04:00
|
|
|
[dependencies]
|
2023-06-07 08:08:02 -04:00
|
|
|
mlua_derive = { version = "=0.9.0-beta.2", optional = true, path = "mlua_derive" }
|
2022-10-11 15:19:23 -04:00
|
|
|
bstr = { version = "1.0", features = ["std"], default_features = false }
|
2021-06-24 19:39:10 -04:00
|
|
|
once_cell = { version = "1.0" }
|
2020-11-04 16:22:24 -05:00
|
|
|
num-traits = { version = "0.2.14" }
|
2021-09-20 08:42:48 -04:00
|
|
|
rustc-hash = "1.0"
|
2023-05-28 05:32:50 -04:00
|
|
|
futures-util = { version = "0.3", optional = true, default-features = false, features = ["std"] }
|
2020-12-12 15:37:17 -05:00
|
|
|
serde = { version = "1.0", optional = true }
|
|
|
|
erased-serde = { version = "0.3", optional = true }
|
2023-01-05 16:32:15 -05:00
|
|
|
serde-value = { version = "0.7", optional = true }
|
2022-04-15 11:50:17 -04:00
|
|
|
parking_lot = { version = "0.12", optional = true }
|
2017-08-02 16:33:48 -04:00
|
|
|
|
2023-06-07 08:06:51 -04:00
|
|
|
ffi = { package = "mlua-sys", version = "0.2.0", path = "mlua-sys" }
|
2017-08-02 08:32:45 -04:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2023-03-30 17:34:41 -04:00
|
|
|
rustyline = "11.0"
|
2023-06-04 13:31:10 -04:00
|
|
|
criterion = { version = "0.5", features = ["async_tokio"] }
|
2020-06-07 19:22:53 -04:00
|
|
|
trybuild = "1.0"
|
|
|
|
futures = "0.3.5"
|
2021-01-16 09:07:26 -05:00
|
|
|
hyper = { version = "0.14", features = ["client", "server"] }
|
|
|
|
reqwest = { version = "0.11", features = ["json"] }
|
|
|
|
tokio = { version = "1.0", features = ["full"] }
|
2020-04-17 17:38:01 -04:00
|
|
|
futures-timer = "3.0"
|
2022-03-31 07:23:21 -04:00
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
2020-12-12 15:37:17 -05:00
|
|
|
serde_json = "1.0"
|
2021-04-11 08:19:12 -04:00
|
|
|
maplit = "1.0"
|
2022-03-20 16:01:04 -04:00
|
|
|
tempfile = "3"
|
2022-12-19 06:37:40 -05:00
|
|
|
static_assertions = "1.0"
|
2018-03-10 10:31:57 -05:00
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "benchmark"
|
2018-05-14 08:51:51 -04:00
|
|
|
harness = false
|
2021-02-21 10:38:50 -05:00
|
|
|
required-features = ["async"]
|
2020-04-17 17:38:01 -04:00
|
|
|
|
|
|
|
[[example]]
|
2020-05-12 22:15:43 -04:00
|
|
|
name = "async_http_client"
|
2021-06-19 09:41:48 -04:00
|
|
|
required-features = ["async", "macros"]
|
2020-04-17 17:38:01 -04:00
|
|
|
|
2020-12-27 20:10:47 -05:00
|
|
|
[[example]]
|
|
|
|
name = "async_http_reqwest"
|
2021-06-19 09:41:48 -04:00
|
|
|
required-features = ["async", "serialize", "macros"]
|
2020-12-27 20:10:47 -05:00
|
|
|
|
2020-04-17 17:38:01 -04:00
|
|
|
[[example]]
|
2020-05-12 22:15:43 -04:00
|
|
|
name = "async_http_server"
|
2022-12-30 08:39:27 -05:00
|
|
|
required-features = ["async", "macros"]
|
2020-05-12 22:15:43 -04:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "async_tcp_server"
|
2021-06-19 09:41:48 -04:00
|
|
|
required-features = ["async", "macros"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "guided_tour"
|
|
|
|
required-features = ["macros"]
|
2020-12-29 15:02:03 -05:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "serialize"
|
|
|
|
required-features = ["serialize"]
|
2021-06-21 15:28:14 -04:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "userdata"
|
|
|
|
required-features = ["macros"]
|