[[bench]]
harness = false
name = "benchmark"
path = "benches/benchmark.rs"
required-features = ["async"]
[dependencies.bstr]
default_features = false
features = ["std"]
version = "1.0"
[dependencies.erased-serde]
optional = true
version = "0.3"
[dependencies.ffi]
package = "factorio-mlua-sys"
version = "0.1.2"
[dependencies.futures-core]
optional = true
version = "0.3.5"
[dependencies.futures-task]
optional = true
version = "0.3.5"
[dependencies.futures-util]
optional = true
version = "0.3.5"
[dependencies.link-cplusplus]
optional = true
version = "1.0"
[dependencies.mlua_derive]
optional = true
version = "=0.9.0-beta.1"
[dependencies.num-traits]
version = "0.2.14"
[dependencies.once_cell]
version = "1.0"
[dependencies.parking_lot]
optional = true
version = "0.12"
[dependencies.rustc-hash]
version = "1.0"
[dependencies.serde]
optional = true
version = "1.0"
[dependencies.serde-value]
optional = true
version = "0.7"
[dev-dependencies.criterion]
features = ["html_reports", "async_tokio"]
version = "0.4"
[dev-dependencies.futures]
version = "0.3.5"
[dev-dependencies.futures-timer]
version = "3.0"
[dev-dependencies.hyper]
features = ["client", "server"]
version = "0.14"
[dev-dependencies.maplit]
version = "1.0"
[dev-dependencies.reqwest]
features = ["json"]
version = "0.11"
[dev-dependencies.rustyline]
version = "11.0"
[dev-dependencies.serde]
features = ["derive"]
version = "1.0"
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.static_assertions]
version = "1.0"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
features = ["full"]
version = "1.0"
[dev-dependencies.trybuild]
version = "1.0"
[[example]]
name = "async_http_client"
path = "examples/async_http_client.rs"
required-features = ["async", "macros"]
[[example]]
name = "async_http_reqwest"
path = "examples/async_http_reqwest.rs"
required-features = ["async", "serialize", "macros"]
[[example]]
name = "async_http_server"
path = "examples/async_http_server.rs"
required-features = ["async", "macros"]
[[example]]
name = "async_tcp_server"
path = "examples/async_tcp_server.rs"
required-features = ["async", "macros"]
[[example]]
name = "guided_tour"
path = "examples/guided_tour.rs"
required-features = ["macros"]
[[example]]
name = "repl"
path = "examples/repl.rs"
[[example]]
name = "serialize"
path = "examples/serialize.rs"
required-features = ["serialize"]
[[example]]
name = "userdata"
path = "examples/userdata.rs"
required-features = ["macros"]
[features]
async = ["futures-core", "futures-task", "futures-util"]
lua-factorio = ["ffi/lua-factorio", "link-cplusplus"]
lua51 = ["ffi/lua51"]
lua52 = ["ffi/lua52"]
lua53 = ["ffi/lua53"]
lua54 = ["ffi/lua54"]
luajit = ["ffi/luajit"]
luajit52 = ["luajit", "ffi/luajit52"]
luau = ["ffi/luau"]
macros = ["mlua_derive/macros"]
module = ["mlua_derive", "ffi/module"]
send = []
serialize = ["serde", "erased-serde", "serde-value"]
unstable = []
vendored = ["ffi/vendored"]
[lib]
name = "factorio_mlua"
path = "src/lib.rs"
[package]
authors = ["Aleksandr Orlenko <zxteam@pm.me>", "kyren <catherine@chucklefish.org>", "JohnTheCoolingFan <ivan8215145640@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
categories = ["api-bindings", "asynchronous"]
description = """
High level bindings to Lua 5.4/5.3/5.2/5.1 (including LuaJIT) and Roblox Luau
with async/await features and support of writing native Lua modules in Rust.
Fork with added Factorio Lua support.
"""
documentation = "https://docs.rs/factorio-mlua"
edition = "2021"
keywords = ["lua", "luajit", "luau", "scripting", "factorio"]
license = "MIT"
name = "factorio-mlua"
readme = "README.md"
repository = "https://github.com/JohnTheCoolingFan/factorio-mlua"
version = "0.9.0-beta.4"
[package.metadata.docs.rs]
features = ["lua-factorio", "vendored", "async", "send", "serialize", "macros", "parking_lot", "unstable"]
rustdoc-args = ["--cfg", "docsrs"]
[[test]]
name = "async"
path = "tests/async.rs"
[[test]]
name = "byte_string"
path = "tests/byte_string.rs"
[[test]]
name = "chunk"
path = "tests/chunk.rs"
[[test]]
name = "compile"
path = "tests/compile.rs"
[[test]]
name = "conversion"
path = "tests/conversion.rs"
[[test]]
name = "debug"
path = "tests/debug.rs"
[[test]]
name = "error"
path = "tests/error.rs"
[[test]]
name = "function"
path = "tests/function.rs"
[[test]]
name = "hooks"
path = "tests/hooks.rs"
[[test]]
name = "luau"
path = "tests/luau.rs"
[[test]]
name = "memory"
path = "tests/memory.rs"
[[test]]
name = "scope"
path = "tests/scope.rs"
[[test]]
name = "serde"
path = "tests/serde.rs"
[[test]]
name = "static"
path = "tests/static.rs"
[[test]]
name = "string"
path = "tests/string.rs"
[[test]]
name = "table"
path = "tests/table.rs"
[[test]]
name = "tests"
path = "tests/tests.rs"
[[test]]
name = "thread"
path = "tests/thread.rs"
[[test]]
name = "types"
path = "tests/types.rs"
[[test]]
name = "userdata"
path = "tests/userdata.rs"
[[test]]
name = "value"
path = "tests/value.rs"