zuraffa_ffi 0.1.0 copy "zuraffa_ffi: ^0.1.0" to clipboard
zuraffa_ffi: ^0.1.0 copied to clipboard

Typed FFI support for the Zuraffa ecosystem: a pure-Dart port, module lifecycle, and typed failures behind an injected platform channel with federated adapters.

zuraffa_ffi #

Typed FFI support for the Zuraffa ecosystem: a pure-Dart port, module lifecycle, and typed failures behind an injected platform channel with federated adapters.

Part of the zuraffa_ffi federated monorepo, built on the Zuraffa framework.

Use #

final service = FfiService(port: myPlatformPort);
final module = await service.compile(id: 'demo', bytes: moduleBytes);
final results = await service.call(
    id: 'demo', export: 'run', args: [FfiI32(1)]);
await service.unload(id: 'demo');

Wire the platform adapter for the running platform first — e.g. registerAndroidFfiDependencies(getIt, channel: ...) from the adapter package — then resolve FfiService, or call registerFfiDependencies(getIt, port: ...) directly. Without a wired port every call surfaces the typed port_not_wired failure.

Develop #

dart pub get
dart test
0
likes
150
points
65
downloads

Documentation

API reference

Publisher

verified publisherzuraffa.com

Weekly Downloads

Typed FFI support for the Zuraffa ecosystem: a pure-Dart port, module lifecycle, and typed failures behind an injected platform channel with federated adapters.

Homepage
Repository (GitHub)
View/report issues

Topics

#ffi #clean-architecture #zuraffa

License

MIT (license)

Dependencies

zuraffa

More

Packages that depend on zuraffa_ffi