returning valus based on lua api

This commit is contained in:
2026-11-23 09:27:00 +00:00
parent e786d9038b
commit d96ed0de57
6 changed files with 301 additions and 5 deletions

89
Cargo.lock generated
View File

@@ -2,6 +2,12 @@
# It is not intended for manual editing.
version = 4
[[package]]
name = "autocfg"
version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
[[package]]
name = "backend"
version = "0.1.0"
@@ -16,6 +22,16 @@ version = "2.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
[[package]]
name = "bstr"
version = "1.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a680398c10c7bc0488067c4612226ea905a85f607134b69f3068d505d58c4214"
dependencies = [
"memchr",
"serde_core",
]
[[package]]
name = "cc"
version = "1.11.2"
@@ -127,6 +143,12 @@ version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7bd50d24b1b75aa817bb0339cb9f2e0e664bdfab1e160a69a0fda9145b77fab2"
[[package]]
name = "either"
version = "1.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
[[package]]
name = "fastrand"
version = "2.5.0"
@@ -144,6 +166,7 @@ name = "frontend"
version = "0.1.0"
dependencies = [
"backend",
"mlua",
]
[[package]]
@@ -205,6 +228,25 @@ version = "0.4.35"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c"
[[package]]
name = "lua-src"
version = "551.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d400ffef0e3d4d29287092bdc5a276d0bf468b2c69709d5bab0d469312d9f947"
dependencies = [
"cc",
]
[[package]]
name = "luajit-src"
version = "210.7.5+63c8f1a"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a98fb6f037124098f4c2283286a0431a4bb0b1d243b90ca1a4d34dd268ea5b96"
dependencies = [
"cc",
"which",
]
[[package]]
name = "markup5ever"
version = "0.40.0"
@@ -222,12 +264,50 @@ version = "2.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
[[package]]
name = "mlua"
version = "0.12.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a7ae6b65bf54b7fdd4cf5b6f44f60862350ebf3fe3779b3a9cc005e7fa14f81"
dependencies = [
"bstr",
"either",
"libc",
"mlua-sys",
"num-traits",
"parking_lot",
"rustc-hash",
]
[[package]]
name = "mlua-sys"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1631cda17bd6486410ab751d91f5fd4484f441589278cdad879eb3afc721a285"
dependencies = [
"cc",
"cfg-if",
"libc",
"lua-src",
"luajit-src",
"pkg-config",
]
[[package]]
name = "new_debug_unreachable"
version = "1.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
[[package]]
name = "num-traits"
version = "0.2.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
dependencies = [
"autocfg",
]
[[package]]
name = "openssl-probe"
version = "0.1.6"
@@ -585,6 +665,15 @@ dependencies = [
"string_cache_codegen",
]
[[package]]
name = "which"
version = "8.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bae2f2b2b816647a1cab1acc91f5bd20812d53cb344382635ec2181940c8034f"
dependencies = [
"libc",
]
[[package]]
name = "windows-link"
version = "0.2.1"