2017-05-21 18:50:59 -05:00
|
|
|
[package]
|
2019-10-01 10:11:12 -05:00
|
|
|
name = "mlua"
|
2020-12-29 16:53:20 -06:00
|
|
|
version = "0.5.0" # remember to update html_root_url and mlua_derive
|
2019-10-01 10:11:12 -05:00
|
|
|
authors = ["Aleksandr Orlenko <zxteam@pm.me>", "kyren <catherine@chucklefish.org>"]
|
2019-09-27 11:27:37 -05:00
|
|
|
edition = "2018"
|
2019-10-01 10:11:12 -05:00
|
|
|
repository = "https://github.com/khvzak/mlua"
|
|
|
|
documentation = "https://docs.rs/mlua"
|
2017-05-22 02:06:33 -05:00
|
|
|
readme = "README.md"
|
2020-04-17 16:38:01 -05:00
|
|
|
keywords = ["lua", "luajit", "async", "futures"]
|
|
|
|
categories = ["api-bindings", "asynchronous"]
|
2017-05-22 02:06:33 -05:00
|
|
|
license = "MIT"
|
2020-01-25 13:25:55 -06:00
|
|
|
links = "lua"
|
|
|
|
build = "build/main.rs"
|
2019-11-04 16:17:55 -06:00
|
|
|
description = """
|
2020-06-08 05:31:10 -05:00
|
|
|
High level bindings to Lua 5.4/5.3/5.2/5.1 (including LuaJIT)
|
2020-04-17 17:27:41 -05:00
|
|
|
with async/await features and support of writing native lua modules in Rust.
|
2019-11-04 16:17:55 -06:00
|
|
|
"""
|
2017-05-21 18:50:59 -05:00
|
|
|
|
2020-04-17 17:27:41 -05:00
|
|
|
[package.metadata.docs.rs]
|
2020-12-29 14:02:03 -06:00
|
|
|
features = ["lua53", "async", "send", "serialize"]
|
2020-12-29 19:43:00 -06:00
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
2020-04-17 17:27:41 -05:00
|
|
|
|
2019-10-01 12:11:51 -05:00
|
|
|
[workspace]
|
|
|
|
members = [
|
|
|
|
"mlua_derive",
|
2020-05-31 06:16:47 -05:00
|
|
|
"examples/module",
|
|
|
|
"tests/module",
|
2019-10-01 12:11:51 -05:00
|
|
|
]
|
|
|
|
|
2019-10-14 16:21:30 -05:00
|
|
|
[features]
|
2020-05-07 19:52:09 -05:00
|
|
|
lua54 = []
|
2019-10-14 16:21:30 -05:00
|
|
|
lua53 = []
|
2019-11-29 07:26:30 -06:00
|
|
|
lua52 = []
|
2019-11-04 10:31:19 -06:00
|
|
|
lua51 = []
|
2019-10-16 04:56:44 -05:00
|
|
|
luajit = []
|
2020-01-27 15:21:50 -06:00
|
|
|
vendored = ["lua-src", "luajit-src"]
|
2020-12-29 16:08:53 -06:00
|
|
|
module = ["mlua_derive"]
|
2020-04-17 16:38:01 -05:00
|
|
|
async = ["futures-core", "futures-task", "futures-util"]
|
2020-05-06 07:18:04 -05:00
|
|
|
send = []
|
2020-12-12 14:37:17 -06:00
|
|
|
serialize = ["serde", "erased-serde"]
|
2019-10-14 16:21:30 -05:00
|
|
|
|
2017-08-02 15:33:48 -05:00
|
|
|
[dependencies]
|
2020-12-29 16:53:20 -06:00
|
|
|
mlua_derive = { version = "0.5", optional = true, path = "mlua_derive" }
|
2019-10-01 10:11:12 -05:00
|
|
|
bstr = { version = "0.2", features = ["std"], default_features = false }
|
2020-04-23 15:29:12 -05:00
|
|
|
lazy_static = { version = "1.4" }
|
2020-11-04 15:22:24 -06:00
|
|
|
num-traits = { version = "0.2.14" }
|
2020-06-07 18:22:53 -05: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 14:37:17 -06:00
|
|
|
serde = { version = "1.0", optional = true }
|
|
|
|
erased-serde = { version = "0.3", optional = true }
|
2017-08-02 15:33:48 -05:00
|
|
|
|
2017-05-21 18:50:59 -05:00
|
|
|
[build-dependencies]
|
2019-09-27 11:27:37 -05:00
|
|
|
cc = { version = "1.0" }
|
2020-04-17 16:38:01 -05:00
|
|
|
pkg-config = { version = "0.3.17" }
|
2020-12-12 19:31:58 -06:00
|
|
|
lua-src = { version = ">= 540.0.0, < 550.0.0", optional = true }
|
|
|
|
luajit-src = { version = ">= 210.1.0, < 220.0.0", optional = true }
|
2017-08-02 07:32:45 -05:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2020-12-27 19:10:47 -06:00
|
|
|
rustyline = "7.0"
|
2020-04-17 16:38:01 -05:00
|
|
|
criterion = "0.3"
|
2020-06-07 18:22:53 -05:00
|
|
|
trybuild = "1.0"
|
|
|
|
futures = "0.3.5"
|
2020-04-17 16:38:01 -05:00
|
|
|
hyper = "0.13"
|
2020-12-27 19:10:47 -06:00
|
|
|
reqwest = { version = "0.10", features = ["json"] }
|
2020-06-07 18:22:53 -05:00
|
|
|
tokio = { version = "0.2", features = ["full"] }
|
2020-04-17 16:38:01 -05:00
|
|
|
futures-timer = "3.0"
|
2020-12-12 14:37:17 -06:00
|
|
|
serde_json = "1.0"
|
2018-03-10 09:31:57 -06:00
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "benchmark"
|
2018-05-14 07:51:51 -05:00
|
|
|
harness = false
|
2020-04-17 16:38:01 -05:00
|
|
|
|
|
|
|
[[example]]
|
2020-05-12 21:15:43 -05:00
|
|
|
name = "async_http_client"
|
2020-04-17 16:38:01 -05:00
|
|
|
required-features = ["async"]
|
|
|
|
|
2020-12-27 19:10:47 -06:00
|
|
|
[[example]]
|
|
|
|
name = "async_http_reqwest"
|
|
|
|
required-features = ["async", "serialize"]
|
|
|
|
|
2020-04-17 16:38:01 -05:00
|
|
|
[[example]]
|
2020-05-12 21:15:43 -05:00
|
|
|
name = "async_http_server"
|
|
|
|
required-features = ["async", "send"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "async_tcp_server"
|
2020-04-17 16:38:01 -05:00
|
|
|
required-features = ["async"]
|
2020-12-29 14:02:03 -06:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "serialize"
|
|
|
|
required-features = ["serialize"]
|