feat(script): add voltex_script crate with Lua 5.4 FFI and safe wrapper

Compiles Lua 5.4 from source via cc crate (excluding lua.c/luac.c).
Provides ffi bindings, LuaState safe wrapper, and default engine bindings.
All 9 tests pass (exec, globals, register_fn, voltex_print).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-25 14:40:53 +09:00
parent cde271139f
commit 6c3ef334fb
69 changed files with 30430 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ members = [
"examples/audio_demo",
"crates/voltex_ai",
"crates/voltex_net",
"crates/voltex_script",
]
[workspace.dependencies]
@@ -33,6 +34,7 @@ voltex_physics = { path = "crates/voltex_physics" }
voltex_audio = { path = "crates/voltex_audio" }
voltex_ai = { path = "crates/voltex_ai" }
voltex_net = { path = "crates/voltex_net" }
voltex_script = { path = "crates/voltex_script" }
wgpu = "28.0"
winit = "0.30"
bytemuck = { version = "1", features = ["derive"] }