2017-05-21 19:50:59 -04:00
|
|
|
[package]
|
2019-10-01 11:11:12 -04:00
|
|
|
name = "mlua"
|
2022-03-01 08:03:06 -05:00
|
|
|
version = "0.7.4" # remember to update html_root_url and mlua_derive
|
2019-10-01 11:11:12 -04:00
|
|
|
authors = ["Aleksandr Orlenko <zxteam@pm.me>", "kyren <catherine@chucklefish.org>"]
|
2019-09-27 12:27:37 -04:00
|
|
|
edition = "2018"
|
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"
|
2021-02-27 08:22:42 -05:00
|
|
|
keywords = ["lua", "luajit", "async", "futures", "scripting"]
|
2020-04-17 17:38:01 -04:00
|
|
|
categories = ["api-bindings", "asynchronous"]
|
2017-05-22 03:06:33 -04:00
|
|
|
license = "MIT"
|
2020-01-25 14:25:55 -05:00
|
|
|
links = "lua"
|
|
|
|
build = "build/main.rs"
|
2019-11-04 17:17:55 -05:00
|
|
|
description = """
|
2020-06-08 06:31:10 -04:00
|
|
|
High level bindings to Lua 5.4/5.3/5.2/5.1 (including LuaJIT)
|
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]
|
2021-11-25 10:43:28 -05:00
|
|
|
features = ["lua54", "vendored", "async", "send", "serialize", "macros"]
|
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",
|
2020-05-31 07:16:47 -04:00
|
|
|
"examples/module",
|
|
|
|
"tests/module",
|
2019-10-01 13:11:51 -04:00
|
|
|
]
|
|
|
|
|
2019-10-14 17:21:30 -04:00
|
|
|
[features]
|
2020-05-07 20:52:09 -04:00
|
|
|
lua54 = []
|
2019-10-14 17:21:30 -04:00
|
|
|
lua53 = []
|
2019-11-29 08:26:30 -05:00
|
|
|
lua52 = []
|
2019-11-04 11:31:19 -05:00
|
|
|
lua51 = []
|
2019-10-16 05:56:44 -04:00
|
|
|
luajit = []
|
2021-11-04 08:25:20 -04:00
|
|
|
luajit52 = ["luajit"]
|
2022-02-19 09:15:15 -05:00
|
|
|
luau = ["luau0-src"]
|
2020-01-27 16:21:50 -05:00
|
|
|
vendored = ["lua-src", "luajit-src"]
|
2020-12-29 17:08:53 -05:00
|
|
|
module = ["mlua_derive"]
|
2020-04-17 17:38:01 -04:00
|
|
|
async = ["futures-core", "futures-task", "futures-util"]
|
2020-05-06 08:18:04 -04:00
|
|
|
send = []
|
2020-12-12 15:37:17 -05:00
|
|
|
serialize = ["serde", "erased-serde"]
|
2021-05-05 16:55:49 -04:00
|
|
|
macros = ["mlua_derive/macros"]
|
2019-10-14 17:21:30 -04:00
|
|
|
|
2017-08-02 16:33:48 -04:00
|
|
|
[dependencies]
|
2021-06-21 18:19:56 -04:00
|
|
|
mlua_derive = { version = "=0.6.0", optional = true, path = "mlua_derive" }
|
2019-10-01 11:11:12 -04:00
|
|
|
bstr = { version = "0.2", 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"
|
2020-06-07 19:22:53 -04:00
|
|
|
futures-core = { version = "0.3.5", optional = true }
|
|
|
|
futures-task = { version = "0.3.5", optional = true }
|
|
|
|
futures-util = { version = "0.3.5", optional = true }
|
2020-12-12 15:37:17 -05:00
|
|
|
serde = { version = "1.0", optional = true }
|
|
|
|
erased-serde = { version = "0.3", optional = true }
|
2017-08-02 16:33:48 -04:00
|
|
|
|
2017-05-21 19:50:59 -04:00
|
|
|
[build-dependencies]
|
2019-09-27 12:27:37 -04:00
|
|
|
cc = { version = "1.0" }
|
2020-04-17 17:38:01 -04:00
|
|
|
pkg-config = { version = "0.3.17" }
|
2020-12-12 20:31:58 -05:00
|
|
|
lua-src = { version = ">= 540.0.0, < 550.0.0", optional = true }
|
2021-11-04 08:25:20 -04:00
|
|
|
luajit-src = { version = ">= 210.3.1, < 220.0.0", optional = true }
|
2022-03-19 17:11:10 -04:00
|
|
|
luau0-src = { version = "0.2.0", optional = true }
|
2017-08-02 08:32:45 -04:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2021-11-25 13:12:29 -05:00
|
|
|
rustyline = "9.0"
|
2021-02-21 10:38:50 -05:00
|
|
|
criterion = { version = "0.3.4", features = ["html_reports", "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"
|
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"
|
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"
|
2021-10-12 06:55:25 -04: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"]
|