diff --git a/Cargo.lock b/Cargo.lock index 527b947..1975613 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -231,6 +231,16 @@ dependencies = [ "objc2", ] +[[package]] +name = "bstr" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c48f0051a4b4c5e0b6d365cd04af53aeaa209e3cc15ec2cdb69e73cc87fbd0dc" +dependencies = [ + "memchr", + "serde", +] + [[package]] name = "bumpalo" version = "3.14.0" @@ -923,6 +933,15 @@ version = "0.4.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" +[[package]] +name = "luau0-src" +version = "0.7.11+luau606" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07ffc4945ee953a33cb2b331e00b19e11275fc105c8ac8a977c810597d790f08" +dependencies = [ + "cc", +] + [[package]] name = "lz4" version = "1.24.0" @@ -1010,6 +1029,32 @@ dependencies = [ "paste", ] +[[package]] +name = "mlua" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "069264935e816c85884b99e88c8b408d6d92e40ae8760f726c983526a53546b5" +dependencies = [ + "bstr", + "libloading 0.8.1", + "mlua-sys", + "num-traits", + "once_cell", + "rustc-hash", +] + +[[package]] +name = "mlua-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4655631a02e3739d014951291ecfa08db49c4da3f7f8c6f3931ed236af5dd78e" +dependencies = [ + "cc", + "cfg-if", + "luau0-src", + "pkg-config", +] + [[package]] name = "naga" version = "0.19.0" @@ -1662,6 +1707,7 @@ dependencies = [ "ddsfile", "glam", "lazy-regex", + "mlua", "obj", "parking_lot", "pollster", diff --git a/Cargo.toml b/Cargo.toml index 289d852..3a32b41 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ configparser = "3.0.2" ddsfile = "0.5.1" glam = "0.24.1" lazy-regex = "3.0.2" +mlua = { version = "0.9.4", features = ["luau-jit"] } obj = "0.10.2" parking_lot = "0.12.1" pollster = "0.3.0"