144 lines
3.1 KiB
TOML
144 lines
3.1 KiB
TOML
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
|
|
#
|
|
# When uploading crates to the registry Cargo will automatically
|
|
# "normalize" Cargo.toml files for maximal compatibility
|
|
# with all versions of Cargo and also rewrite `path` dependencies
|
|
# to registry (e.g., crates.io) dependencies
|
|
#
|
|
# If you believe there's an error in this file please file an
|
|
# issue against the rust-lang/cargo repository. If you're
|
|
# editing this file be aware that the upstream Cargo.toml
|
|
# will likely look very different (and much more reasonable)
|
|
|
|
[package]
|
|
edition = "2018"
|
|
name = "mlua"
|
|
version = "0.5.3"
|
|
authors = ["Aleksandr Orlenko <zxteam@pm.me>", "kyren <catherine@chucklefish.org>"]
|
|
build = "build/main.rs"
|
|
links = "lua"
|
|
description = "High level bindings to Lua 5.4/5.3/5.2/5.1 (including LuaJIT)\nwith async/await features and support of writing native lua modules in Rust.\n"
|
|
documentation = "https://docs.rs/mlua"
|
|
readme = "README.md"
|
|
keywords = ["lua", "luajit", "async", "futures", "scripting"]
|
|
categories = ["api-bindings", "asynchronous"]
|
|
license = "MIT"
|
|
repository = "https://github.com/khvzak/mlua"
|
|
[package.metadata.docs.rs]
|
|
features = ["lua53", "async", "send", "serialize"]
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[[example]]
|
|
name = "async_http_client"
|
|
required-features = ["async"]
|
|
|
|
[[example]]
|
|
name = "async_http_reqwest"
|
|
required-features = ["async", "serialize"]
|
|
|
|
[[example]]
|
|
name = "async_http_server"
|
|
required-features = ["async", "send"]
|
|
|
|
[[example]]
|
|
name = "async_tcp_server"
|
|
required-features = ["async"]
|
|
|
|
[[example]]
|
|
name = "serialize"
|
|
required-features = ["serialize"]
|
|
|
|
[[bench]]
|
|
name = "benchmark"
|
|
harness = false
|
|
required-features = ["async"]
|
|
[dependencies.bstr]
|
|
version = "0.2"
|
|
features = ["std"]
|
|
default_features = false
|
|
|
|
[dependencies.erased-serde]
|
|
version = "0.3"
|
|
optional = true
|
|
|
|
[dependencies.futures-core]
|
|
version = "0.3.5"
|
|
optional = true
|
|
|
|
[dependencies.futures-task]
|
|
version = "0.3.5"
|
|
optional = true
|
|
|
|
[dependencies.futures-util]
|
|
version = "0.3.5"
|
|
optional = true
|
|
|
|
[dependencies.lazy_static]
|
|
version = "1.4"
|
|
|
|
[dependencies.mlua_derive]
|
|
version = "0.5"
|
|
optional = true
|
|
|
|
[dependencies.num-traits]
|
|
version = "0.2.14"
|
|
|
|
[dependencies.serde]
|
|
version = "1.0"
|
|
optional = true
|
|
[dev-dependencies.criterion]
|
|
version = "0.3.4"
|
|
features = ["html_reports", "async_tokio"]
|
|
|
|
[dev-dependencies.futures]
|
|
version = "0.3.5"
|
|
|
|
[dev-dependencies.futures-timer]
|
|
version = "3.0"
|
|
|
|
[dev-dependencies.hyper]
|
|
version = "0.14"
|
|
features = ["client", "server"]
|
|
|
|
[dev-dependencies.reqwest]
|
|
version = "0.11"
|
|
features = ["json"]
|
|
|
|
[dev-dependencies.rustyline]
|
|
version = "7.0"
|
|
|
|
[dev-dependencies.serde_json]
|
|
version = "1.0"
|
|
|
|
[dev-dependencies.tokio]
|
|
version = "1.0"
|
|
features = ["full"]
|
|
|
|
[dev-dependencies.trybuild]
|
|
version = "1.0"
|
|
[build-dependencies.cc]
|
|
version = "1.0"
|
|
|
|
[build-dependencies.lua-src]
|
|
version = ">= 540.0.0, < 550.0.0"
|
|
optional = true
|
|
|
|
[build-dependencies.luajit-src]
|
|
version = ">= 210.1.2, < 220.0.0"
|
|
optional = true
|
|
|
|
[build-dependencies.pkg-config]
|
|
version = "0.3.17"
|
|
|
|
[features]
|
|
async = ["futures-core", "futures-task", "futures-util"]
|
|
lua51 = []
|
|
lua52 = []
|
|
lua53 = []
|
|
lua54 = []
|
|
luajit = []
|
|
module = ["mlua_derive"]
|
|
send = []
|
|
serialize = ["serde", "erased-serde"]
|
|
vendored = ["lua-src", "luajit-src"]
|