[package] name = "mlua-codemp-patch" version = "0.10.0-beta.2" # remember to update mlua_derive authors = ["Aleksandr Orlenko ", "kyren "] rust-version = "1.79.0" edition = "2021" repository = "https://github.com/khvzak/mlua" documentation = "https://docs.rs/mlua" readme = "README.md" keywords = ["lua", "luajit", "luau", "async", "scripting"] categories = ["api-bindings", "asynchronous"] license = "MIT" 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. """ [package.metadata.docs.rs] features = ["lua54", "vendored", "async", "send", "serialize", "macros"] rustdoc-args = ["--cfg", "docsrs"] [workspace] members = [ "mlua_derive", "mlua-sys", ] [features] lua54 = ["ffi/lua54"] lua53 = ["ffi/lua53"] lua52 = ["ffi/lua52"] lua51 = ["ffi/lua51"] luajit = ["ffi/luajit"] luajit52 = ["luajit", "ffi/luajit52"] luau = ["ffi/luau", "dep:libloading"] luau-jit = ["luau", "ffi/luau-codegen"] luau-vector4 = ["luau", "ffi/luau-vector4"] vendored = ["ffi/vendored"] module = ["dep:mlua_derive", "ffi/module"] async = ["dep:futures-util"] send = ["parking_lot/send_guard"] serialize = ["dep:serde", "dep:erased-serde", "dep:serde-value"] macros = ["mlua_derive/macros"] [dependencies] mlua_derive = { version = "=0.10.0-beta.1", optional = true, path = "mlua_derive" } bstr = { version = "1.0", features = ["std"], default-features = false } num-traits = { version = "0.2.14" } rustc-hash = "2.0" futures-util = { version = "0.3", optional = true, default-features = false, features = ["std"] } serde = { version = "1.0", optional = true } erased-serde = { version = "0.4", optional = true } serde-value = { version = "0.7", optional = true } parking_lot = { version = "0.12", features = ["arc_lock"] } ffi = { package = "mlua-sys", version = "0.6.3", path = "mlua-sys" } [target.'cfg(unix)'.dependencies] libloading = { version = "0.8", optional = true } [dev-dependencies] trybuild = "1.0" hyper = { version = "1.2", features = ["full"] } hyper-util = { version = "0.1.3", features = ["full"] } http-body-util = "0.1.1" reqwest = { version = "0.12", features = ["json"] } tokio = { version = "1.0", features = ["macros", "rt", "time"] } serde = { version = "1.0", features = ["derive"] } serde_json = { version = "1.0", features = ["arbitrary_precision"] } maplit = "1.0" tempfile = "3" static_assertions = "1.0" [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] criterion = { version = "0.5", features = ["async_tokio"] } rustyline = "14.0" tokio = { version = "1.0", features = ["full"] } [lints.rust] unexpected_cfgs = { level = "allow", check-cfg = ['cfg(tarpaulin_include)'] } [[bench]] name = "benchmark" harness = false required-features = ["async"] [[bench]] name = "serde" harness = false required-features = ["serialize"] [[example]] name = "async_http_client" required-features = ["async", "macros"] [[example]] name = "async_http_reqwest" required-features = ["async", "serialize", "macros"] [[example]] name = "async_http_server" required-features = ["async", "macros", "send"] [[example]] name = "async_tcp_server" required-features = ["async", "macros", "send"] [[example]] name = "guided_tour" required-features = ["macros"] [[example]] name = "serialize" required-features = ["serialize"] [[example]] name = "userdata" required-features = ["macros"]