mlua/Cargo.toml

109 lines
2.9 KiB
TOML
Raw Normal View History

2017-05-21 18:50:59 -05:00
[package]
2019-10-01 10:11:12 -05:00
name = "mlua"
2022-11-06 19:02:52 -06:00
version = "0.8.6" # 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>"]
edition = "2021"
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"
2022-06-06 09:59:28 -05:00
keywords = ["lua", "luajit", "luau", "async", "scripting"]
categories = ["api-bindings", "asynchronous"]
2017-05-22 02:06:33 -05:00
license = "MIT"
links = "lua"
build = "build/main.rs"
2019-11-04 16:17:55 -06:00
description = """
2022-03-20 20:37:08 -05:00
High level bindings to Lua 5.4/5.3/5.2/5.1 (including LuaJIT) and Roblox Luau
2021-10-04 17:29:20 -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]
2022-04-15 10:50:17 -05:00
features = ["lua54", "vendored", "async", "send", "serialize", "macros", "parking_lot"]
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",
]
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 = []
lua51 = []
2019-10-16 04:56:44 -05:00
luajit = []
luajit52 = ["luajit"]
2022-02-19 08:15:15 -06:00
luau = ["luau0-src"]
vendored = ["lua-src", "luajit-src"]
2020-12-29 16:08:53 -06:00
module = ["mlua_derive"]
async = ["futures-core", "futures-task", "futures-util"]
send = []
2020-12-12 14:37:17 -06:00
serialize = ["serde", "erased-serde"]
2021-05-05 15:55:49 -05:00
macros = ["mlua_derive/macros"]
2019-10-14 16:21:30 -05:00
[dependencies]
2022-06-02 16:44:07 -05:00
mlua_derive = { version = "=0.8.0", optional = true, path = "mlua_derive" }
2019-10-01 10:11:12 -05:00
bstr = { version = "0.2", features = ["std"], default_features = false }
2021-06-24 18:39:10 -05:00
once_cell = { version = "1.0" }
num-traits = { version = "0.2.14" }
2021-09-20 07:42:48 -05:00
rustc-hash = "1.0"
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 }
2022-04-15 10:50:17 -05:00
parking_lot = { version = "0.12", optional = true }
2017-05-21 18:50:59 -05:00
[build-dependencies]
cc = { version = "1.0" }
pkg-config = { version = "0.3.17" }
lua-src = { version = ">= 544.0.0, < 550.0.0", optional = true }
2022-06-06 09:59:28 -05:00
luajit-src = { version = ">= 210.4.0, < 220.0.0", optional = true }
2022-10-08 17:34:47 -05:00
luau0-src = { version = "0.4.0", optional = true }
[dev-dependencies]
2022-07-25 08:14:01 -05:00
rustyline = "10.0"
criterion = { version = "0.3.4", features = ["html_reports", "async_tokio"] }
2020-06-07 18:22:53 -05:00
trybuild = "1.0"
futures = "0.3.5"
2021-01-16 08:07:26 -06:00
hyper = { version = "0.14", features = ["client", "server"] }
reqwest = { version = "0.11", features = ["json"] }
tokio = { version = "1.0", features = ["full"] }
futures-timer = "3.0"
2022-03-31 06:23:21 -05:00
serde = { version = "1.0", features = ["derive"] }
2020-12-12 14:37:17 -06:00
serde_json = "1.0"
2021-04-11 07:19:12 -05:00
maplit = "1.0"
2022-03-20 15:01:04 -05:00
tempfile = "3"
[[bench]]
name = "benchmark"
2018-05-14 07:51:51 -05:00
harness = false
required-features = ["async"]
[[example]]
2020-05-12 21:15:43 -05:00
name = "async_http_client"
required-features = ["async", "macros"]
[[example]]
name = "async_http_reqwest"
required-features = ["async", "serialize", "macros"]
[[example]]
2020-05-12 21:15:43 -05:00
name = "async_http_server"
required-features = ["async", "macros"]
2020-05-12 21:15:43 -05:00
[[example]]
name = "async_tcp_server"
required-features = ["async", "macros"]
[[example]]
name = "guided_tour"
required-features = ["macros"]
[[example]]
name = "serialize"
required-features = ["serialize"]
2021-06-21 14:28:14 -05:00
[[example]]
name = "userdata"
required-features = ["macros"]