flutter_lua_bridge 0.2.0
flutter_lua_bridge: ^0.2.0 copied to clipboard
Typed Dart / Lua interoperability with annotation-based code generation.
0.2.0 #
- Require Dart 3.14 (Flutter 3.50) and the current majors of the build hook
dependencies:
hooksandcode_assets2.2,native_toolchain_c0.19.6,archive4.7. - The native bindings are regenerated with ffigen 23; the Dart API is unchanged.
0.1.1 #
- Allow the current major versions of the build hook dependencies:
hooksandcode_assets1.x or 2.x,native_toolchain_cup to 0.19. - Require
archive4.
0.1.0 #
- Split the annotations into
flutter_lua_bridge_codegen_annotationand the Dart/Lua/Teal generator intoflutter_lua_bridge_codegen. - Add synchronous typed DTO interop, per-runtime host registration and a protected native error boundary.
- The library re-exports the contract annotations and the codecs;
package:flutter_lua_bridge/generated.dartis removed. LuaRuntime.bindLuaandregisterDartno longer take a contract fingerprint. Versioning the shipped Lua against the Dart code is left to the application.- Bundle official Lua 5.3.6, 5.4.9 and 5.5.0 under
third_party/; select one with thelua_versionorlua_sourcehook define (default 5.4). - Replace the stack-oriented raw bindings with the
flbC shim (native/flb.h): a stackless value/handle API whose interface is identical for every supported Lua release. Breaking:raw.dart,LuaStateand thelua_*/luaL_*bindings are removed. LuaRuntimeis the single Dart entry point:run/eval/load, globals, tables, functions, coroutines, userdata classes, modules, memory limit and interrupt, plus the support calls used by generated code.- Breaking:
LuaRuntime.create()opensLuaLibrary.safeby default (noio,os,debugor native module loading). - Breaking:
LuaBridgeException.messageno longer embeds the traceback; readtracebackandstatusinstead. - Host callbacks may re-enter the runtime; closing it inside a callback is still rejected.
- Migrate the Flutter basic demo and add a bidirectional BattleApi/HostApi example.
- Add generated Lua safety levels O1/O2/O3, result envelopes for O1/O2, Lua
runtime type validators and
pcallerror capture.
0.0.1 #
- Initial release: raw Lua bindings and Flutter examples.