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

WebAssembly for the Zuraffa ecosystem: a pure-Dart port over an injected platform channel with federated android, ios, and macos adapters.

zuraffa_wasm #

WebAssembly for the Zuraffa ecosystem: a pure-Dart port over an injected platform channel with federated android, ios, and macos adapters.

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

Use #

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

Wire the platform adapter for the running platform first — e.g. registerAndroidWasmDependencies(getIt, channel: ...) from the adapter package — then resolve WasmService, or call registerWasmDependencies(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
73
downloads

Documentation

API reference

Publisher

verified publisherzuraffa.com

Weekly Downloads

WebAssembly for the Zuraffa ecosystem: a pure-Dart port over an injected platform channel with federated android, ios, and macos adapters.

Homepage
Repository (GitHub)
View/report issues

Topics

#wasm #clean-architecture #zuraffa

License

MIT (license)

Dependencies

zuraffa

More

Packages that depend on zuraffa_wasm