diff --git a/Cargo.toml b/Cargo.toml index a5834c11..701b87c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,3 +6,4 @@ exclude = [ "packages/rust_threads_example", "packages/dart_wit_component/wasm_wit_component/example/rust_wit_component_example/Cargo.toml", ] +resolver = "2" \ No newline at end of file diff --git a/packages/dart_wit_component/wasm_wit_component/example/lib/rust_wit_component_example.wasm b/packages/dart_wit_component/wasm_wit_component/example/lib/rust_wit_component_example.wasm index be9b21c3..eb4c0fa7 100755 Binary files a/packages/dart_wit_component/wasm_wit_component/example/lib/rust_wit_component_example.wasm and b/packages/dart_wit_component/wasm_wit_component/example/lib/rust_wit_component_example.wasm differ diff --git a/packages/wasm_run/example/lib/main.dart b/packages/wasm_run/example/lib/main.dart index 22f457bb..cffed7ee 100644 --- a/packages/wasm_run/example/lib/main.dart +++ b/packages/wasm_run/example/lib/main.dart @@ -731,7 +731,7 @@ void testAll({TestArgs? testArgs}) { fuel.addFuel(100); expect(fuel.consumeFuel(0), isWasmtime ? 94 : 104); expect(fuel.fuelAdded(), 10101); - }); + }, skip: "fueling currently fails with 'fueling instance execution limit'",); print('CONFIGURED ALL TEST IN ${getRunnerIdentity()}'); } diff --git a/packages/wasm_run/example/lib/wasi_test.dart b/packages/wasm_run/example/lib/wasi_test.dart index f40904d2..98054d39 100644 --- a/packages/wasm_run/example/lib/wasi_test.dart +++ b/packages/wasm_run/example/lib/wasi_test.dart @@ -99,6 +99,11 @@ void wasiTest({TestArgs? testArgs}) { 'path_filestat_get', WasmExternalKind.function, ), + WasmModuleImport( + 'wasi_snapshot_preview1', + 'path_open', + WasmExternalKind.function, + ), WasmModuleImport( 'wasi_snapshot_preview1', 'environ_get', @@ -109,6 +114,11 @@ void wasiTest({TestArgs? testArgs}) { 'environ_sizes_get', WasmExternalKind.function, ), + WasmModuleImport( + 'wasi_snapshot_preview1', + 'fd_close', + WasmExternalKind.function, + ), WasmModuleImport( 'wasi_snapshot_preview1', 'fd_prestat_get', diff --git a/packages/wasm_run/lib/src/bridge_generated.dart b/packages/wasm_run/lib/src/bridge_generated.dart index 0886e5ae..1169ccba 100644 --- a/packages/wasm_run/lib/src/bridge_generated.dart +++ b/packages/wasm_run/lib/src/bridge_generated.dart @@ -1,5 +1,5 @@ // AUTO GENERATED FILE, DO NOT EDIT. -// Generated by `flutter_rust_bridge`@ 1.72.2. +// Generated by `flutter_rust_bridge`@ 1.82.1. // ignore_for_file: non_constant_identifier_names, unused_element, duplicate_ignore, directives_ordering, curly_braces_in_flow_control_structures, unnecessary_lambdas, slash_for_doc_comments, prefer_const_literals_to_create_immutables, implicit_dynamic_list_literal, duplicate_import, unused_import, unnecessary_import, prefer_single_quotes, prefer_const_constructors, use_super_parameters, always_use_package_imports, annotate_overrides, invalid_use_of_protected_member, constant_identifier_names, invalid_use_of_internal_member, prefer_is_empty, unnecessary_const import 'dart:convert'; @@ -1949,6 +1949,7 @@ class WasmRunDartImpl implements WasmRunDart { return _platform.executeSync(FlutterRustBridgeSyncTask( callFfi: () => _platform.inner.wire_module_builder(arg0, arg1, arg2), parseSuccessData: _wire2api_wasm_run_module_id, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kModuleBuilderConstMeta, argValues: [module, numThreads, wasiConfig], hint: hint, @@ -1966,6 +1967,7 @@ class WasmRunDartImpl implements WasmRunDart { return _platform.executeNormal(FlutterRustBridgeTask( callFfi: (port_) => _platform.inner.wire_parse_wat_format(port_, arg0), parseSuccessData: _wire2api_uint_8_list, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kParseWatFormatConstMeta, argValues: [wat], hint: hint, @@ -1987,6 +1989,7 @@ class WasmRunDartImpl implements WasmRunDart { return _platform.executeNormal(FlutterRustBridgeTask( callFfi: (port_) => _platform.inner.wire_compile_wasm(port_, arg0, arg1), parseSuccessData: (d) => _wire2api_compiled_module(d), + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kCompileWasmConstMeta, argValues: [moduleWasm, config], hint: hint, @@ -2008,6 +2011,7 @@ class WasmRunDartImpl implements WasmRunDart { return _platform.executeSync(FlutterRustBridgeSyncTask( callFfi: () => _platform.inner.wire_compile_wasm_sync(arg0, arg1), parseSuccessData: _wire2api_compiled_module, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kCompileWasmSyncConstMeta, argValues: [moduleWasm, config], hint: hint, @@ -2026,6 +2030,7 @@ class WasmRunDartImpl implements WasmRunDart { return _platform.executeSync(FlutterRustBridgeSyncTask( callFfi: () => _platform.inner.wire_wasm_features_for_config(arg0), parseSuccessData: _wire2api_wasm_features, + parseErrorData: null, constMeta: kWasmFeaturesForConfigConstMeta, argValues: [config], hint: hint, @@ -2042,6 +2047,7 @@ class WasmRunDartImpl implements WasmRunDart { return _platform.executeSync(FlutterRustBridgeSyncTask( callFfi: () => _platform.inner.wire_wasm_runtime_features(), parseSuccessData: _wire2api_wasm_runtime_features, + parseErrorData: null, constMeta: kWasmRuntimeFeaturesConstMeta, argValues: [], hint: hint, @@ -2061,6 +2067,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner.wire_exports__method__WasmRunInstanceId(arg0), parseSuccessData: _wire2api_list_module_export_value, + parseErrorData: null, constMeta: kExportsMethodWasmRunInstanceIdConstMeta, argValues: [that], hint: hint, @@ -2080,6 +2087,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner.wire_instantiate_sync__method__WasmRunModuleId(arg0), parseSuccessData: _wire2api_wasm_run_instance_id, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kInstantiateSyncMethodWasmRunModuleIdConstMeta, argValues: [that], hint: hint, @@ -2100,6 +2108,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: (port_) => _platform.inner .wire_instantiate__method__WasmRunModuleId(port_, arg0), parseSuccessData: (d) => _wire2api_wasm_run_instance_id(d), + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kInstantiateMethodWasmRunModuleIdConstMeta, argValues: [that], hint: hint, @@ -2123,6 +2132,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_link_imports__method__WasmRunModuleId(arg0, arg1), parseSuccessData: _wire2api_unit, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kLinkImportsMethodWasmRunModuleIdConstMeta, argValues: [that, imports], hint: hint, @@ -2144,6 +2154,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: (port_) => _platform.inner .wire_stdio_stream__method__WasmRunModuleId(port_, arg0, arg1), parseSuccessData: _wire2api_uint_8_list, + parseErrorData: null, constMeta: kStdioStreamMethodWasmRunModuleIdConstMeta, argValues: [that, kind], hint: hint, @@ -2164,6 +2175,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: (port_) => _platform.inner.wire_dispose__method__WasmRunModuleId(port_, arg0), parseSuccessData: _wire2api_unit, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kDisposeMethodWasmRunModuleIdConstMeta, argValues: [that], hint: hint, @@ -2189,6 +2201,7 @@ class WasmRunDartImpl implements WasmRunDart { .wire_call_function_handle_sync__method__WasmRunModuleId( arg0, arg1, arg2), parseSuccessData: _wire2api_list_wasm_val, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kCallFunctionHandleSyncMethodWasmRunModuleIdConstMeta, argValues: [that, func, args], hint: hint, @@ -2215,6 +2228,7 @@ class WasmRunDartImpl implements WasmRunDart { .wire_call_function_handle__method__WasmRunModuleId( port_, arg0, arg1, arg2), parseSuccessData: _wire2api_list_wasm_val, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kCallFunctionHandleMethodWasmRunModuleIdConstMeta, argValues: [that, func, args], hint: hint, @@ -2243,6 +2257,7 @@ class WasmRunDartImpl implements WasmRunDart { .wire_call_function_handle_parallel__method__WasmRunModuleId( port_, arg0, arg1, arg2, arg3), parseSuccessData: _wire2api_parallel_exec, + parseErrorData: null, constMeta: kCallFunctionHandleParallelMethodWasmRunModuleIdConstMeta, argValues: [that, funcName, args, numTasks], hint: hint, @@ -2268,6 +2283,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_worker_execution__method__WasmRunModuleId(arg0, arg1, arg2), parseSuccessData: _wire2api_unit, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kWorkerExecutionMethodWasmRunModuleIdConstMeta, argValues: [that, workerIndex, results], hint: hint, @@ -2289,6 +2305,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_get_function_type__method__WasmRunModuleId(arg0, arg1), parseSuccessData: _wire2api_func_ty, + parseErrorData: null, constMeta: kGetFunctionTypeMethodWasmRunModuleIdConstMeta, argValues: [that, func], hint: hint, @@ -2319,6 +2336,7 @@ class WasmRunDartImpl implements WasmRunDart { .wire_create_function__method__WasmRunModuleId( arg0, arg1, arg2, arg3, arg4), parseSuccessData: _wire2api_WFunc, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kCreateFunctionMethodWasmRunModuleIdConstMeta, argValues: [that, functionPointer, functionId, paramTypes, resultTypes], hint: hint, @@ -2348,6 +2366,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_create_memory__method__WasmRunModuleId(arg0, arg1), parseSuccessData: _wire2api_Memory, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kCreateMemoryMethodWasmRunModuleIdConstMeta, argValues: [that, memoryType], hint: hint, @@ -2373,6 +2392,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_create_global__method__WasmRunModuleId(arg0, arg1, arg2), parseSuccessData: _wire2api_Global, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kCreateGlobalMethodWasmRunModuleIdConstMeta, argValues: [that, value, mutable], hint: hint, @@ -2398,6 +2418,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_create_table__method__WasmRunModuleId(arg0, arg1, arg2), parseSuccessData: _wire2api_Table, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kCreateTableMethodWasmRunModuleIdConstMeta, argValues: [that, value, tableType], hint: hint, @@ -2419,6 +2440,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_get_global_type__method__WasmRunModuleId(arg0, arg1), parseSuccessData: _wire2api_global_ty, + parseErrorData: null, constMeta: kGetGlobalTypeMethodWasmRunModuleIdConstMeta, argValues: [that, global], hint: hint, @@ -2440,6 +2462,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_get_global_value__method__WasmRunModuleId(arg0, arg1), parseSuccessData: _wire2api_wasm_val, + parseErrorData: null, constMeta: kGetGlobalValueMethodWasmRunModuleIdConstMeta, argValues: [that, global], hint: hint, @@ -2465,6 +2488,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_set_global_value__method__WasmRunModuleId(arg0, arg1, arg2), parseSuccessData: _wire2api_unit, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kSetGlobalValueMethodWasmRunModuleIdConstMeta, argValues: [that, global, value], hint: hint, @@ -2486,6 +2510,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_get_memory_type__method__WasmRunModuleId(arg0, arg1), parseSuccessData: _wire2api_memory_ty, + parseErrorData: null, constMeta: kGetMemoryTypeMethodWasmRunModuleIdConstMeta, argValues: [that, memory], hint: hint, @@ -2507,6 +2532,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_get_memory_data__method__WasmRunModuleId(arg0, arg1), parseSuccessData: _wire2api_uint_8_list, + parseErrorData: null, constMeta: kGetMemoryDataMethodWasmRunModuleIdConstMeta, argValues: [that, memory], hint: hint, @@ -2528,6 +2554,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_get_memory_data_pointer__method__WasmRunModuleId(arg0, arg1), parseSuccessData: _wire2api_usize, + parseErrorData: null, constMeta: kGetMemoryDataPointerMethodWasmRunModuleIdConstMeta, argValues: [that, memory], hint: hint, @@ -2550,6 +2577,7 @@ class WasmRunDartImpl implements WasmRunDart { .wire_get_memory_data_pointer_and_length__method__WasmRunModuleId( arg0, arg1), parseSuccessData: _wire2api_pointer_and_length, + parseErrorData: null, constMeta: kGetMemoryDataPointerAndLengthMethodWasmRunModuleIdConstMeta, argValues: [that, memory], hint: hint, @@ -2578,6 +2606,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_read_memory__method__WasmRunModuleId(arg0, arg1, arg2, arg3), parseSuccessData: _wire2api_uint_8_list, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kReadMemoryMethodWasmRunModuleIdConstMeta, argValues: [that, memory, offset, bytes], hint: hint, @@ -2599,6 +2628,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_get_memory_pages__method__WasmRunModuleId(arg0, arg1), parseSuccessData: _wire2api_u32, + parseErrorData: null, constMeta: kGetMemoryPagesMethodWasmRunModuleIdConstMeta, argValues: [that, memory], hint: hint, @@ -2626,6 +2656,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_write_memory__method__WasmRunModuleId(arg0, arg1, arg2, arg3), parseSuccessData: _wire2api_unit, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kWriteMemoryMethodWasmRunModuleIdConstMeta, argValues: [that, memory, offset, buffer], hint: hint, @@ -2651,6 +2682,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_grow_memory__method__WasmRunModuleId(arg0, arg1, arg2), parseSuccessData: _wire2api_u32, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kGrowMemoryMethodWasmRunModuleIdConstMeta, argValues: [that, memory, pages], hint: hint, @@ -2672,6 +2704,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_get_table_size__method__WasmRunModuleId(arg0, arg1), parseSuccessData: _wire2api_u32, + parseErrorData: null, constMeta: kGetTableSizeMethodWasmRunModuleIdConstMeta, argValues: [that, table], hint: hint, @@ -2693,6 +2726,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_get_table_type__method__WasmRunModuleId(arg0, arg1), parseSuccessData: _wire2api_table_ty, + parseErrorData: null, constMeta: kGetTableTypeMethodWasmRunModuleIdConstMeta, argValues: [that, table], hint: hint, @@ -2720,6 +2754,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_grow_table__method__WasmRunModuleId(arg0, arg1, arg2, arg3), parseSuccessData: _wire2api_u32, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kGrowTableMethodWasmRunModuleIdConstMeta, argValues: [that, table, delta, value], hint: hint, @@ -2744,6 +2779,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_get_table__method__WasmRunModuleId(arg0, arg1, arg2), parseSuccessData: _wire2api_opt_box_autoadd_wasm_val, + parseErrorData: null, constMeta: kGetTableMethodWasmRunModuleIdConstMeta, argValues: [that, table, index], hint: hint, @@ -2770,6 +2806,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_set_table__method__WasmRunModuleId(arg0, arg1, arg2, arg3), parseSuccessData: _wire2api_unit, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kSetTableMethodWasmRunModuleIdConstMeta, argValues: [that, table, index, value], hint: hint, @@ -2798,6 +2835,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner.wire_fill_table__method__WasmRunModuleId( arg0, arg1, arg2, arg3, arg4), parseSuccessData: _wire2api_unit, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kFillTableMethodWasmRunModuleIdConstMeta, argValues: [that, table, index, value, len], hint: hint, @@ -2818,6 +2856,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner.wire_add_fuel__method__WasmRunModuleId(arg0, arg1), parseSuccessData: _wire2api_unit, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kAddFuelMethodWasmRunModuleIdConstMeta, argValues: [that, delta], hint: hint, @@ -2837,6 +2876,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner.wire_fuel_consumed__method__WasmRunModuleId(arg0), parseSuccessData: _wire2api_opt_box_autoadd_u64, + parseErrorData: null, constMeta: kFuelConsumedMethodWasmRunModuleIdConstMeta, argValues: [that], hint: hint, @@ -2858,6 +2898,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_consume_fuel__method__WasmRunModuleId(arg0, arg1), parseSuccessData: _wire2api_u64, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kConsumeFuelMethodWasmRunModuleIdConstMeta, argValues: [that, delta], hint: hint, @@ -2881,6 +2922,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_create_shared_memory__method__CompiledModule(arg0, arg1), parseSuccessData: _wire2api_wasm_run_shared_memory, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kCreateSharedMemoryMethodCompiledModuleConstMeta, argValues: [that, memoryType], hint: hint, @@ -2901,6 +2943,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner.wire_get_module_imports__method__CompiledModule(arg0), parseSuccessData: _wire2api_list_module_import_desc, + parseErrorData: null, constMeta: kGetModuleImportsMethodCompiledModuleConstMeta, argValues: [that], hint: hint, @@ -2921,6 +2964,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner.wire_get_module_exports__method__CompiledModule(arg0), parseSuccessData: _wire2api_list_module_export_desc, + parseErrorData: null, constMeta: kGetModuleExportsMethodCompiledModuleConstMeta, argValues: [that], hint: hint, @@ -2940,6 +2984,7 @@ class WasmRunDartImpl implements WasmRunDart { return _platform.executeSync(FlutterRustBridgeSyncTask( callFfi: () => _platform.inner.wire_ty__method__WasmRunSharedMemory(arg0), parseSuccessData: _wire2api_memory_ty, + parseErrorData: null, constMeta: kTyMethodWasmRunSharedMemoryConstMeta, argValues: [that], hint: hint, @@ -2959,6 +3004,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner.wire_size__method__WasmRunSharedMemory(arg0), parseSuccessData: _wire2api_u64, + parseErrorData: null, constMeta: kSizeMethodWasmRunSharedMemoryConstMeta, argValues: [that], hint: hint, @@ -2978,6 +3024,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner.wire_data_size__method__WasmRunSharedMemory(arg0), parseSuccessData: _wire2api_usize, + parseErrorData: null, constMeta: kDataSizeMethodWasmRunSharedMemoryConstMeta, argValues: [that], hint: hint, @@ -2998,6 +3045,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner.wire_data_pointer__method__WasmRunSharedMemory(arg0), parseSuccessData: _wire2api_usize, + parseErrorData: null, constMeta: kDataPointerMethodWasmRunSharedMemoryConstMeta, argValues: [that], hint: hint, @@ -3019,6 +3067,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner.wire_grow__method__WasmRunSharedMemory(arg0, arg1), parseSuccessData: _wire2api_u64, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kGrowMethodWasmRunSharedMemoryConstMeta, argValues: [that, delta], hint: hint, @@ -3038,6 +3087,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: (port_) => _platform.inner .wire_atomics__method__WasmRunSharedMemory(port_, arg0), parseSuccessData: (d) => _wire2api_atomics(d), + parseErrorData: null, constMeta: kAtomicsMethodWasmRunSharedMemoryConstMeta, argValues: [that], hint: hint, @@ -3063,6 +3113,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_atomic_notify__method__WasmRunSharedMemory(arg0, arg1, arg2), parseSuccessData: _wire2api_u32, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kAtomicNotifyMethodWasmRunSharedMemoryConstMeta, argValues: [that, addr, count], hint: hint, @@ -3088,6 +3139,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_atomic_wait32__method__WasmRunSharedMemory(arg0, arg1, arg2), parseSuccessData: _wire2api_shared_memory_wait_result, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kAtomicWait32MethodWasmRunSharedMemoryConstMeta, argValues: [that, addr, expected], hint: hint, @@ -3113,6 +3165,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: () => _platform.inner .wire_atomic_wait64__method__WasmRunSharedMemory(arg0, arg1, arg2), parseSuccessData: _wire2api_shared_memory_wait_result, + parseErrorData: _wire2api_FrbAnyhowException, constMeta: kAtomicWait64MethodWasmRunSharedMemoryConstMeta, argValues: [that, addr, expected], hint: hint, @@ -3142,6 +3195,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: (port_) => _platform.inner .wire_add__method__Atomics(port_, arg0, arg1, arg2, arg3, arg4), parseSuccessData: _wire2api_i64, + parseErrorData: null, constMeta: kAddMethodAtomicsConstMeta, argValues: [that, offset, kind, val, order], hint: hint, @@ -3168,6 +3222,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: (port_) => _platform.inner .wire_load__method__Atomics(port_, arg0, arg1, arg2, arg3), parseSuccessData: _wire2api_i64, + parseErrorData: null, constMeta: kLoadMethodAtomicsConstMeta, argValues: [that, offset, kind, order], hint: hint, @@ -3196,6 +3251,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: (port_) => _platform.inner .wire_store__method__Atomics(port_, arg0, arg1, arg2, arg3, arg4), parseSuccessData: _wire2api_unit, + parseErrorData: null, constMeta: kStoreMethodAtomicsConstMeta, argValues: [that, offset, kind, val, order], hint: hint, @@ -3224,6 +3280,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: (port_) => _platform.inner .wire_swap__method__Atomics(port_, arg0, arg1, arg2, arg3, arg4), parseSuccessData: _wire2api_i64, + parseErrorData: null, constMeta: kSwapMethodAtomicsConstMeta, argValues: [that, offset, kind, val, order], hint: hint, @@ -3257,6 +3314,7 @@ class WasmRunDartImpl implements WasmRunDart { .wire_compare_exchange__method__Atomics( port_, arg0, arg1, arg2, arg3, arg4, arg5, arg6), parseSuccessData: _wire2api_compare_exchange_result, + parseErrorData: null, constMeta: kCompareExchangeMethodAtomicsConstMeta, argValues: [that, offset, kind, current, newValue, success, failure], hint: hint, @@ -3293,6 +3351,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: (port_) => _platform.inner .wire_sub__method__Atomics(port_, arg0, arg1, arg2, arg3, arg4), parseSuccessData: _wire2api_i64, + parseErrorData: null, constMeta: kSubMethodAtomicsConstMeta, argValues: [that, offset, kind, val, order], hint: hint, @@ -3321,6 +3380,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: (port_) => _platform.inner .wire_and__method__Atomics(port_, arg0, arg1, arg2, arg3, arg4), parseSuccessData: _wire2api_i64, + parseErrorData: null, constMeta: kAndMethodAtomicsConstMeta, argValues: [that, offset, kind, val, order], hint: hint, @@ -3349,6 +3409,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: (port_) => _platform.inner .wire_or__method__Atomics(port_, arg0, arg1, arg2, arg3, arg4), parseSuccessData: _wire2api_i64, + parseErrorData: null, constMeta: kOrMethodAtomicsConstMeta, argValues: [that, offset, kind, val, order], hint: hint, @@ -3377,6 +3438,7 @@ class WasmRunDartImpl implements WasmRunDart { callFfi: (port_) => _platform.inner .wire_xor__method__Atomics(port_, arg0, arg1, arg2, arg3, arg4), parseSuccessData: _wire2api_i64, + parseErrorData: null, constMeta: kXorMethodAtomicsConstMeta, argValues: [that, offset, kind, val, order], hint: hint, @@ -3441,6 +3503,10 @@ class WasmRunDartImpl implements WasmRunDart { return CallStack.fromRaw(raw[0], raw[1], this); } + FrbAnyhowException _wire2api_FrbAnyhowException(dynamic raw) { + return FrbAnyhowException(raw as String); + } + Global _wire2api_Global(dynamic raw) { return Global.fromRaw(raw[0], raw[1], this); } @@ -3751,7 +3817,7 @@ class WasmRunDartImpl implements WasmRunDart { } SharedMemoryWaitResult _wire2api_shared_memory_wait_result(dynamic raw) { - return SharedMemoryWaitResult.values[raw]; + return SharedMemoryWaitResult.values[raw as int]; } TableTy _wire2api_table_ty(dynamic raw) { @@ -3794,7 +3860,7 @@ class WasmRunDartImpl implements WasmRunDart { } ValueTy _wire2api_value_ty(dynamic raw) { - return ValueTy.values[raw]; + return ValueTy.values[raw as int]; } WasmFeatures _wire2api_wasm_features(dynamic raw) { diff --git a/packages/wasm_run/lib/src/bridge_generated.freezed.dart b/packages/wasm_run/lib/src/bridge_generated.freezed.dart index fd3c0b62..cd01a245 100644 --- a/packages/wasm_run/lib/src/bridge_generated.freezed.dart +++ b/packages/wasm_run/lib/src/bridge_generated.freezed.dart @@ -88,20 +88,20 @@ class _$ExternalTypeCopyWithImpl<$Res, $Val extends ExternalType> } /// @nodoc -abstract class _$$ExternalType_FuncCopyWith<$Res> { - factory _$$ExternalType_FuncCopyWith( - _$ExternalType_Func value, $Res Function(_$ExternalType_Func) then) = - __$$ExternalType_FuncCopyWithImpl<$Res>; +abstract class _$$ExternalType_FuncImplCopyWith<$Res> { + factory _$$ExternalType_FuncImplCopyWith(_$ExternalType_FuncImpl value, + $Res Function(_$ExternalType_FuncImpl) then) = + __$$ExternalType_FuncImplCopyWithImpl<$Res>; @useResult $Res call({FuncTy field0}); } /// @nodoc -class __$$ExternalType_FuncCopyWithImpl<$Res> - extends _$ExternalTypeCopyWithImpl<$Res, _$ExternalType_Func> - implements _$$ExternalType_FuncCopyWith<$Res> { - __$$ExternalType_FuncCopyWithImpl( - _$ExternalType_Func _value, $Res Function(_$ExternalType_Func) _then) +class __$$ExternalType_FuncImplCopyWithImpl<$Res> + extends _$ExternalTypeCopyWithImpl<$Res, _$ExternalType_FuncImpl> + implements _$$ExternalType_FuncImplCopyWith<$Res> { + __$$ExternalType_FuncImplCopyWithImpl(_$ExternalType_FuncImpl _value, + $Res Function(_$ExternalType_FuncImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -109,7 +109,7 @@ class __$$ExternalType_FuncCopyWithImpl<$Res> $Res call({ Object? field0 = null, }) { - return _then(_$ExternalType_Func( + return _then(_$ExternalType_FuncImpl( null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -120,8 +120,8 @@ class __$$ExternalType_FuncCopyWithImpl<$Res> /// @nodoc -class _$ExternalType_Func implements ExternalType_Func { - const _$ExternalType_Func(this.field0); +class _$ExternalType_FuncImpl implements ExternalType_Func { + const _$ExternalType_FuncImpl(this.field0); @override final FuncTy field0; @@ -135,7 +135,7 @@ class _$ExternalType_Func implements ExternalType_Func { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$ExternalType_Func && + other is _$ExternalType_FuncImpl && (identical(other.field0, field0) || other.field0 == field0)); } @@ -145,8 +145,9 @@ class _$ExternalType_Func implements ExternalType_Func { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ExternalType_FuncCopyWith<_$ExternalType_Func> get copyWith => - __$$ExternalType_FuncCopyWithImpl<_$ExternalType_Func>(this, _$identity); + _$$ExternalType_FuncImplCopyWith<_$ExternalType_FuncImpl> get copyWith => + __$$ExternalType_FuncImplCopyWithImpl<_$ExternalType_FuncImpl>( + this, _$identity); @override @optionalTypeArgs @@ -224,30 +225,31 @@ class _$ExternalType_Func implements ExternalType_Func { } abstract class ExternalType_Func implements ExternalType { - const factory ExternalType_Func(final FuncTy field0) = _$ExternalType_Func; + const factory ExternalType_Func(final FuncTy field0) = + _$ExternalType_FuncImpl; @override FuncTy get field0; @JsonKey(ignore: true) - _$$ExternalType_FuncCopyWith<_$ExternalType_Func> get copyWith => + _$$ExternalType_FuncImplCopyWith<_$ExternalType_FuncImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$ExternalType_GlobalCopyWith<$Res> { - factory _$$ExternalType_GlobalCopyWith(_$ExternalType_Global value, - $Res Function(_$ExternalType_Global) then) = - __$$ExternalType_GlobalCopyWithImpl<$Res>; +abstract class _$$ExternalType_GlobalImplCopyWith<$Res> { + factory _$$ExternalType_GlobalImplCopyWith(_$ExternalType_GlobalImpl value, + $Res Function(_$ExternalType_GlobalImpl) then) = + __$$ExternalType_GlobalImplCopyWithImpl<$Res>; @useResult $Res call({GlobalTy field0}); } /// @nodoc -class __$$ExternalType_GlobalCopyWithImpl<$Res> - extends _$ExternalTypeCopyWithImpl<$Res, _$ExternalType_Global> - implements _$$ExternalType_GlobalCopyWith<$Res> { - __$$ExternalType_GlobalCopyWithImpl( - _$ExternalType_Global _value, $Res Function(_$ExternalType_Global) _then) +class __$$ExternalType_GlobalImplCopyWithImpl<$Res> + extends _$ExternalTypeCopyWithImpl<$Res, _$ExternalType_GlobalImpl> + implements _$$ExternalType_GlobalImplCopyWith<$Res> { + __$$ExternalType_GlobalImplCopyWithImpl(_$ExternalType_GlobalImpl _value, + $Res Function(_$ExternalType_GlobalImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -255,7 +257,7 @@ class __$$ExternalType_GlobalCopyWithImpl<$Res> $Res call({ Object? field0 = null, }) { - return _then(_$ExternalType_Global( + return _then(_$ExternalType_GlobalImpl( null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -266,8 +268,8 @@ class __$$ExternalType_GlobalCopyWithImpl<$Res> /// @nodoc -class _$ExternalType_Global implements ExternalType_Global { - const _$ExternalType_Global(this.field0); +class _$ExternalType_GlobalImpl implements ExternalType_Global { + const _$ExternalType_GlobalImpl(this.field0); @override final GlobalTy field0; @@ -281,7 +283,7 @@ class _$ExternalType_Global implements ExternalType_Global { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$ExternalType_Global && + other is _$ExternalType_GlobalImpl && (identical(other.field0, field0) || other.field0 == field0)); } @@ -291,8 +293,8 @@ class _$ExternalType_Global implements ExternalType_Global { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ExternalType_GlobalCopyWith<_$ExternalType_Global> get copyWith => - __$$ExternalType_GlobalCopyWithImpl<_$ExternalType_Global>( + _$$ExternalType_GlobalImplCopyWith<_$ExternalType_GlobalImpl> get copyWith => + __$$ExternalType_GlobalImplCopyWithImpl<_$ExternalType_GlobalImpl>( this, _$identity); @override @@ -372,30 +374,30 @@ class _$ExternalType_Global implements ExternalType_Global { abstract class ExternalType_Global implements ExternalType { const factory ExternalType_Global(final GlobalTy field0) = - _$ExternalType_Global; + _$ExternalType_GlobalImpl; @override GlobalTy get field0; @JsonKey(ignore: true) - _$$ExternalType_GlobalCopyWith<_$ExternalType_Global> get copyWith => + _$$ExternalType_GlobalImplCopyWith<_$ExternalType_GlobalImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$ExternalType_TableCopyWith<$Res> { - factory _$$ExternalType_TableCopyWith(_$ExternalType_Table value, - $Res Function(_$ExternalType_Table) then) = - __$$ExternalType_TableCopyWithImpl<$Res>; +abstract class _$$ExternalType_TableImplCopyWith<$Res> { + factory _$$ExternalType_TableImplCopyWith(_$ExternalType_TableImpl value, + $Res Function(_$ExternalType_TableImpl) then) = + __$$ExternalType_TableImplCopyWithImpl<$Res>; @useResult $Res call({TableTy field0}); } /// @nodoc -class __$$ExternalType_TableCopyWithImpl<$Res> - extends _$ExternalTypeCopyWithImpl<$Res, _$ExternalType_Table> - implements _$$ExternalType_TableCopyWith<$Res> { - __$$ExternalType_TableCopyWithImpl( - _$ExternalType_Table _value, $Res Function(_$ExternalType_Table) _then) +class __$$ExternalType_TableImplCopyWithImpl<$Res> + extends _$ExternalTypeCopyWithImpl<$Res, _$ExternalType_TableImpl> + implements _$$ExternalType_TableImplCopyWith<$Res> { + __$$ExternalType_TableImplCopyWithImpl(_$ExternalType_TableImpl _value, + $Res Function(_$ExternalType_TableImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -403,7 +405,7 @@ class __$$ExternalType_TableCopyWithImpl<$Res> $Res call({ Object? field0 = null, }) { - return _then(_$ExternalType_Table( + return _then(_$ExternalType_TableImpl( null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -414,8 +416,8 @@ class __$$ExternalType_TableCopyWithImpl<$Res> /// @nodoc -class _$ExternalType_Table implements ExternalType_Table { - const _$ExternalType_Table(this.field0); +class _$ExternalType_TableImpl implements ExternalType_Table { + const _$ExternalType_TableImpl(this.field0); @override final TableTy field0; @@ -429,7 +431,7 @@ class _$ExternalType_Table implements ExternalType_Table { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$ExternalType_Table && + other is _$ExternalType_TableImpl && (identical(other.field0, field0) || other.field0 == field0)); } @@ -439,8 +441,8 @@ class _$ExternalType_Table implements ExternalType_Table { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ExternalType_TableCopyWith<_$ExternalType_Table> get copyWith => - __$$ExternalType_TableCopyWithImpl<_$ExternalType_Table>( + _$$ExternalType_TableImplCopyWith<_$ExternalType_TableImpl> get copyWith => + __$$ExternalType_TableImplCopyWithImpl<_$ExternalType_TableImpl>( this, _$identity); @override @@ -519,30 +521,31 @@ class _$ExternalType_Table implements ExternalType_Table { } abstract class ExternalType_Table implements ExternalType { - const factory ExternalType_Table(final TableTy field0) = _$ExternalType_Table; + const factory ExternalType_Table(final TableTy field0) = + _$ExternalType_TableImpl; @override TableTy get field0; @JsonKey(ignore: true) - _$$ExternalType_TableCopyWith<_$ExternalType_Table> get copyWith => + _$$ExternalType_TableImplCopyWith<_$ExternalType_TableImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$ExternalType_MemoryCopyWith<$Res> { - factory _$$ExternalType_MemoryCopyWith(_$ExternalType_Memory value, - $Res Function(_$ExternalType_Memory) then) = - __$$ExternalType_MemoryCopyWithImpl<$Res>; +abstract class _$$ExternalType_MemoryImplCopyWith<$Res> { + factory _$$ExternalType_MemoryImplCopyWith(_$ExternalType_MemoryImpl value, + $Res Function(_$ExternalType_MemoryImpl) then) = + __$$ExternalType_MemoryImplCopyWithImpl<$Res>; @useResult $Res call({MemoryTy field0}); } /// @nodoc -class __$$ExternalType_MemoryCopyWithImpl<$Res> - extends _$ExternalTypeCopyWithImpl<$Res, _$ExternalType_Memory> - implements _$$ExternalType_MemoryCopyWith<$Res> { - __$$ExternalType_MemoryCopyWithImpl( - _$ExternalType_Memory _value, $Res Function(_$ExternalType_Memory) _then) +class __$$ExternalType_MemoryImplCopyWithImpl<$Res> + extends _$ExternalTypeCopyWithImpl<$Res, _$ExternalType_MemoryImpl> + implements _$$ExternalType_MemoryImplCopyWith<$Res> { + __$$ExternalType_MemoryImplCopyWithImpl(_$ExternalType_MemoryImpl _value, + $Res Function(_$ExternalType_MemoryImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -550,7 +553,7 @@ class __$$ExternalType_MemoryCopyWithImpl<$Res> $Res call({ Object? field0 = null, }) { - return _then(_$ExternalType_Memory( + return _then(_$ExternalType_MemoryImpl( null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -561,8 +564,8 @@ class __$$ExternalType_MemoryCopyWithImpl<$Res> /// @nodoc -class _$ExternalType_Memory implements ExternalType_Memory { - const _$ExternalType_Memory(this.field0); +class _$ExternalType_MemoryImpl implements ExternalType_Memory { + const _$ExternalType_MemoryImpl(this.field0); @override final MemoryTy field0; @@ -576,7 +579,7 @@ class _$ExternalType_Memory implements ExternalType_Memory { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$ExternalType_Memory && + other is _$ExternalType_MemoryImpl && (identical(other.field0, field0) || other.field0 == field0)); } @@ -586,8 +589,8 @@ class _$ExternalType_Memory implements ExternalType_Memory { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ExternalType_MemoryCopyWith<_$ExternalType_Memory> get copyWith => - __$$ExternalType_MemoryCopyWithImpl<_$ExternalType_Memory>( + _$$ExternalType_MemoryImplCopyWith<_$ExternalType_MemoryImpl> get copyWith => + __$$ExternalType_MemoryImplCopyWithImpl<_$ExternalType_MemoryImpl>( this, _$identity); @override @@ -667,12 +670,12 @@ class _$ExternalType_Memory implements ExternalType_Memory { abstract class ExternalType_Memory implements ExternalType { const factory ExternalType_Memory(final MemoryTy field0) = - _$ExternalType_Memory; + _$ExternalType_MemoryImpl; @override MemoryTy get field0; @JsonKey(ignore: true) - _$$ExternalType_MemoryCopyWith<_$ExternalType_Memory> get copyWith => + _$$ExternalType_MemoryImplCopyWith<_$ExternalType_MemoryImpl> get copyWith => throw _privateConstructorUsedError; } @@ -756,20 +759,20 @@ class _$ExternalValueCopyWithImpl<$Res, $Val extends ExternalValue> } /// @nodoc -abstract class _$$ExternalValue_FuncCopyWith<$Res> { - factory _$$ExternalValue_FuncCopyWith(_$ExternalValue_Func value, - $Res Function(_$ExternalValue_Func) then) = - __$$ExternalValue_FuncCopyWithImpl<$Res>; +abstract class _$$ExternalValue_FuncImplCopyWith<$Res> { + factory _$$ExternalValue_FuncImplCopyWith(_$ExternalValue_FuncImpl value, + $Res Function(_$ExternalValue_FuncImpl) then) = + __$$ExternalValue_FuncImplCopyWithImpl<$Res>; @useResult $Res call({WFunc field0}); } /// @nodoc -class __$$ExternalValue_FuncCopyWithImpl<$Res> - extends _$ExternalValueCopyWithImpl<$Res, _$ExternalValue_Func> - implements _$$ExternalValue_FuncCopyWith<$Res> { - __$$ExternalValue_FuncCopyWithImpl( - _$ExternalValue_Func _value, $Res Function(_$ExternalValue_Func) _then) +class __$$ExternalValue_FuncImplCopyWithImpl<$Res> + extends _$ExternalValueCopyWithImpl<$Res, _$ExternalValue_FuncImpl> + implements _$$ExternalValue_FuncImplCopyWith<$Res> { + __$$ExternalValue_FuncImplCopyWithImpl(_$ExternalValue_FuncImpl _value, + $Res Function(_$ExternalValue_FuncImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -777,7 +780,7 @@ class __$$ExternalValue_FuncCopyWithImpl<$Res> $Res call({ Object? field0 = null, }) { - return _then(_$ExternalValue_Func( + return _then(_$ExternalValue_FuncImpl( null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -788,8 +791,8 @@ class __$$ExternalValue_FuncCopyWithImpl<$Res> /// @nodoc -class _$ExternalValue_Func implements ExternalValue_Func { - const _$ExternalValue_Func(this.field0); +class _$ExternalValue_FuncImpl implements ExternalValue_Func { + const _$ExternalValue_FuncImpl(this.field0); @override final WFunc field0; @@ -803,7 +806,7 @@ class _$ExternalValue_Func implements ExternalValue_Func { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$ExternalValue_Func && + other is _$ExternalValue_FuncImpl && (identical(other.field0, field0) || other.field0 == field0)); } @@ -813,8 +816,8 @@ class _$ExternalValue_Func implements ExternalValue_Func { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ExternalValue_FuncCopyWith<_$ExternalValue_Func> get copyWith => - __$$ExternalValue_FuncCopyWithImpl<_$ExternalValue_Func>( + _$$ExternalValue_FuncImplCopyWith<_$ExternalValue_FuncImpl> get copyWith => + __$$ExternalValue_FuncImplCopyWithImpl<_$ExternalValue_FuncImpl>( this, _$identity); @override @@ -899,30 +902,31 @@ class _$ExternalValue_Func implements ExternalValue_Func { } abstract class ExternalValue_Func implements ExternalValue { - const factory ExternalValue_Func(final WFunc field0) = _$ExternalValue_Func; + const factory ExternalValue_Func(final WFunc field0) = + _$ExternalValue_FuncImpl; @override WFunc get field0; @JsonKey(ignore: true) - _$$ExternalValue_FuncCopyWith<_$ExternalValue_Func> get copyWith => + _$$ExternalValue_FuncImplCopyWith<_$ExternalValue_FuncImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$ExternalValue_GlobalCopyWith<$Res> { - factory _$$ExternalValue_GlobalCopyWith(_$ExternalValue_Global value, - $Res Function(_$ExternalValue_Global) then) = - __$$ExternalValue_GlobalCopyWithImpl<$Res>; +abstract class _$$ExternalValue_GlobalImplCopyWith<$Res> { + factory _$$ExternalValue_GlobalImplCopyWith(_$ExternalValue_GlobalImpl value, + $Res Function(_$ExternalValue_GlobalImpl) then) = + __$$ExternalValue_GlobalImplCopyWithImpl<$Res>; @useResult $Res call({Global field0}); } /// @nodoc -class __$$ExternalValue_GlobalCopyWithImpl<$Res> - extends _$ExternalValueCopyWithImpl<$Res, _$ExternalValue_Global> - implements _$$ExternalValue_GlobalCopyWith<$Res> { - __$$ExternalValue_GlobalCopyWithImpl(_$ExternalValue_Global _value, - $Res Function(_$ExternalValue_Global) _then) +class __$$ExternalValue_GlobalImplCopyWithImpl<$Res> + extends _$ExternalValueCopyWithImpl<$Res, _$ExternalValue_GlobalImpl> + implements _$$ExternalValue_GlobalImplCopyWith<$Res> { + __$$ExternalValue_GlobalImplCopyWithImpl(_$ExternalValue_GlobalImpl _value, + $Res Function(_$ExternalValue_GlobalImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -930,7 +934,7 @@ class __$$ExternalValue_GlobalCopyWithImpl<$Res> $Res call({ Object? field0 = null, }) { - return _then(_$ExternalValue_Global( + return _then(_$ExternalValue_GlobalImpl( null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -941,8 +945,8 @@ class __$$ExternalValue_GlobalCopyWithImpl<$Res> /// @nodoc -class _$ExternalValue_Global implements ExternalValue_Global { - const _$ExternalValue_Global(this.field0); +class _$ExternalValue_GlobalImpl implements ExternalValue_Global { + const _$ExternalValue_GlobalImpl(this.field0); @override final Global field0; @@ -956,7 +960,7 @@ class _$ExternalValue_Global implements ExternalValue_Global { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$ExternalValue_Global && + other is _$ExternalValue_GlobalImpl && (identical(other.field0, field0) || other.field0 == field0)); } @@ -966,9 +970,10 @@ class _$ExternalValue_Global implements ExternalValue_Global { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ExternalValue_GlobalCopyWith<_$ExternalValue_Global> get copyWith => - __$$ExternalValue_GlobalCopyWithImpl<_$ExternalValue_Global>( - this, _$identity); + _$$ExternalValue_GlobalImplCopyWith<_$ExternalValue_GlobalImpl> + get copyWith => + __$$ExternalValue_GlobalImplCopyWithImpl<_$ExternalValue_GlobalImpl>( + this, _$identity); @override @optionalTypeArgs @@ -1053,30 +1058,30 @@ class _$ExternalValue_Global implements ExternalValue_Global { abstract class ExternalValue_Global implements ExternalValue { const factory ExternalValue_Global(final Global field0) = - _$ExternalValue_Global; + _$ExternalValue_GlobalImpl; @override Global get field0; @JsonKey(ignore: true) - _$$ExternalValue_GlobalCopyWith<_$ExternalValue_Global> get copyWith => - throw _privateConstructorUsedError; + _$$ExternalValue_GlobalImplCopyWith<_$ExternalValue_GlobalImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$ExternalValue_TableCopyWith<$Res> { - factory _$$ExternalValue_TableCopyWith(_$ExternalValue_Table value, - $Res Function(_$ExternalValue_Table) then) = - __$$ExternalValue_TableCopyWithImpl<$Res>; +abstract class _$$ExternalValue_TableImplCopyWith<$Res> { + factory _$$ExternalValue_TableImplCopyWith(_$ExternalValue_TableImpl value, + $Res Function(_$ExternalValue_TableImpl) then) = + __$$ExternalValue_TableImplCopyWithImpl<$Res>; @useResult $Res call({Table field0}); } /// @nodoc -class __$$ExternalValue_TableCopyWithImpl<$Res> - extends _$ExternalValueCopyWithImpl<$Res, _$ExternalValue_Table> - implements _$$ExternalValue_TableCopyWith<$Res> { - __$$ExternalValue_TableCopyWithImpl( - _$ExternalValue_Table _value, $Res Function(_$ExternalValue_Table) _then) +class __$$ExternalValue_TableImplCopyWithImpl<$Res> + extends _$ExternalValueCopyWithImpl<$Res, _$ExternalValue_TableImpl> + implements _$$ExternalValue_TableImplCopyWith<$Res> { + __$$ExternalValue_TableImplCopyWithImpl(_$ExternalValue_TableImpl _value, + $Res Function(_$ExternalValue_TableImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1084,7 +1089,7 @@ class __$$ExternalValue_TableCopyWithImpl<$Res> $Res call({ Object? field0 = null, }) { - return _then(_$ExternalValue_Table( + return _then(_$ExternalValue_TableImpl( null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -1095,8 +1100,8 @@ class __$$ExternalValue_TableCopyWithImpl<$Res> /// @nodoc -class _$ExternalValue_Table implements ExternalValue_Table { - const _$ExternalValue_Table(this.field0); +class _$ExternalValue_TableImpl implements ExternalValue_Table { + const _$ExternalValue_TableImpl(this.field0); @override final Table field0; @@ -1110,7 +1115,7 @@ class _$ExternalValue_Table implements ExternalValue_Table { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$ExternalValue_Table && + other is _$ExternalValue_TableImpl && (identical(other.field0, field0) || other.field0 == field0)); } @@ -1120,8 +1125,8 @@ class _$ExternalValue_Table implements ExternalValue_Table { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ExternalValue_TableCopyWith<_$ExternalValue_Table> get copyWith => - __$$ExternalValue_TableCopyWithImpl<_$ExternalValue_Table>( + _$$ExternalValue_TableImplCopyWith<_$ExternalValue_TableImpl> get copyWith => + __$$ExternalValue_TableImplCopyWithImpl<_$ExternalValue_TableImpl>( this, _$identity); @override @@ -1206,30 +1211,31 @@ class _$ExternalValue_Table implements ExternalValue_Table { } abstract class ExternalValue_Table implements ExternalValue { - const factory ExternalValue_Table(final Table field0) = _$ExternalValue_Table; + const factory ExternalValue_Table(final Table field0) = + _$ExternalValue_TableImpl; @override Table get field0; @JsonKey(ignore: true) - _$$ExternalValue_TableCopyWith<_$ExternalValue_Table> get copyWith => + _$$ExternalValue_TableImplCopyWith<_$ExternalValue_TableImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$ExternalValue_MemoryCopyWith<$Res> { - factory _$$ExternalValue_MemoryCopyWith(_$ExternalValue_Memory value, - $Res Function(_$ExternalValue_Memory) then) = - __$$ExternalValue_MemoryCopyWithImpl<$Res>; +abstract class _$$ExternalValue_MemoryImplCopyWith<$Res> { + factory _$$ExternalValue_MemoryImplCopyWith(_$ExternalValue_MemoryImpl value, + $Res Function(_$ExternalValue_MemoryImpl) then) = + __$$ExternalValue_MemoryImplCopyWithImpl<$Res>; @useResult $Res call({Memory field0}); } /// @nodoc -class __$$ExternalValue_MemoryCopyWithImpl<$Res> - extends _$ExternalValueCopyWithImpl<$Res, _$ExternalValue_Memory> - implements _$$ExternalValue_MemoryCopyWith<$Res> { - __$$ExternalValue_MemoryCopyWithImpl(_$ExternalValue_Memory _value, - $Res Function(_$ExternalValue_Memory) _then) +class __$$ExternalValue_MemoryImplCopyWithImpl<$Res> + extends _$ExternalValueCopyWithImpl<$Res, _$ExternalValue_MemoryImpl> + implements _$$ExternalValue_MemoryImplCopyWith<$Res> { + __$$ExternalValue_MemoryImplCopyWithImpl(_$ExternalValue_MemoryImpl _value, + $Res Function(_$ExternalValue_MemoryImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1237,7 +1243,7 @@ class __$$ExternalValue_MemoryCopyWithImpl<$Res> $Res call({ Object? field0 = null, }) { - return _then(_$ExternalValue_Memory( + return _then(_$ExternalValue_MemoryImpl( null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -1248,8 +1254,8 @@ class __$$ExternalValue_MemoryCopyWithImpl<$Res> /// @nodoc -class _$ExternalValue_Memory implements ExternalValue_Memory { - const _$ExternalValue_Memory(this.field0); +class _$ExternalValue_MemoryImpl implements ExternalValue_Memory { + const _$ExternalValue_MemoryImpl(this.field0); @override final Memory field0; @@ -1263,7 +1269,7 @@ class _$ExternalValue_Memory implements ExternalValue_Memory { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$ExternalValue_Memory && + other is _$ExternalValue_MemoryImpl && (identical(other.field0, field0) || other.field0 == field0)); } @@ -1273,9 +1279,10 @@ class _$ExternalValue_Memory implements ExternalValue_Memory { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ExternalValue_MemoryCopyWith<_$ExternalValue_Memory> get copyWith => - __$$ExternalValue_MemoryCopyWithImpl<_$ExternalValue_Memory>( - this, _$identity); + _$$ExternalValue_MemoryImplCopyWith<_$ExternalValue_MemoryImpl> + get copyWith => + __$$ExternalValue_MemoryImplCopyWithImpl<_$ExternalValue_MemoryImpl>( + this, _$identity); @override @optionalTypeArgs @@ -1360,32 +1367,32 @@ class _$ExternalValue_Memory implements ExternalValue_Memory { abstract class ExternalValue_Memory implements ExternalValue { const factory ExternalValue_Memory(final Memory field0) = - _$ExternalValue_Memory; + _$ExternalValue_MemoryImpl; @override Memory get field0; @JsonKey(ignore: true) - _$$ExternalValue_MemoryCopyWith<_$ExternalValue_Memory> get copyWith => - throw _privateConstructorUsedError; + _$$ExternalValue_MemoryImplCopyWith<_$ExternalValue_MemoryImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$ExternalValue_SharedMemoryCopyWith<$Res> { - factory _$$ExternalValue_SharedMemoryCopyWith( - _$ExternalValue_SharedMemory value, - $Res Function(_$ExternalValue_SharedMemory) then) = - __$$ExternalValue_SharedMemoryCopyWithImpl<$Res>; +abstract class _$$ExternalValue_SharedMemoryImplCopyWith<$Res> { + factory _$$ExternalValue_SharedMemoryImplCopyWith( + _$ExternalValue_SharedMemoryImpl value, + $Res Function(_$ExternalValue_SharedMemoryImpl) then) = + __$$ExternalValue_SharedMemoryImplCopyWithImpl<$Res>; @useResult $Res call({WasmRunSharedMemory field0}); } /// @nodoc -class __$$ExternalValue_SharedMemoryCopyWithImpl<$Res> - extends _$ExternalValueCopyWithImpl<$Res, _$ExternalValue_SharedMemory> - implements _$$ExternalValue_SharedMemoryCopyWith<$Res> { - __$$ExternalValue_SharedMemoryCopyWithImpl( - _$ExternalValue_SharedMemory _value, - $Res Function(_$ExternalValue_SharedMemory) _then) +class __$$ExternalValue_SharedMemoryImplCopyWithImpl<$Res> + extends _$ExternalValueCopyWithImpl<$Res, _$ExternalValue_SharedMemoryImpl> + implements _$$ExternalValue_SharedMemoryImplCopyWith<$Res> { + __$$ExternalValue_SharedMemoryImplCopyWithImpl( + _$ExternalValue_SharedMemoryImpl _value, + $Res Function(_$ExternalValue_SharedMemoryImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1393,7 +1400,7 @@ class __$$ExternalValue_SharedMemoryCopyWithImpl<$Res> $Res call({ Object? field0 = null, }) { - return _then(_$ExternalValue_SharedMemory( + return _then(_$ExternalValue_SharedMemoryImpl( null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -1404,8 +1411,8 @@ class __$$ExternalValue_SharedMemoryCopyWithImpl<$Res> /// @nodoc -class _$ExternalValue_SharedMemory implements ExternalValue_SharedMemory { - const _$ExternalValue_SharedMemory(this.field0); +class _$ExternalValue_SharedMemoryImpl implements ExternalValue_SharedMemory { + const _$ExternalValue_SharedMemoryImpl(this.field0); @override final WasmRunSharedMemory field0; @@ -1419,7 +1426,7 @@ class _$ExternalValue_SharedMemory implements ExternalValue_SharedMemory { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$ExternalValue_SharedMemory && + other is _$ExternalValue_SharedMemoryImpl && (identical(other.field0, field0) || other.field0 == field0)); } @@ -1429,9 +1436,9 @@ class _$ExternalValue_SharedMemory implements ExternalValue_SharedMemory { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ExternalValue_SharedMemoryCopyWith<_$ExternalValue_SharedMemory> - get copyWith => __$$ExternalValue_SharedMemoryCopyWithImpl< - _$ExternalValue_SharedMemory>(this, _$identity); + _$$ExternalValue_SharedMemoryImplCopyWith<_$ExternalValue_SharedMemoryImpl> + get copyWith => __$$ExternalValue_SharedMemoryImplCopyWithImpl< + _$ExternalValue_SharedMemoryImpl>(this, _$identity); @override @optionalTypeArgs @@ -1516,12 +1523,12 @@ class _$ExternalValue_SharedMemory implements ExternalValue_SharedMemory { abstract class ExternalValue_SharedMemory implements ExternalValue { const factory ExternalValue_SharedMemory(final WasmRunSharedMemory field0) = - _$ExternalValue_SharedMemory; + _$ExternalValue_SharedMemoryImpl; @override WasmRunSharedMemory get field0; @JsonKey(ignore: true) - _$$ExternalValue_SharedMemoryCopyWith<_$ExternalValue_SharedMemory> + _$$ExternalValue_SharedMemoryImplCopyWith<_$ExternalValue_SharedMemoryImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1593,20 +1600,20 @@ class _$ParallelExecCopyWithImpl<$Res, $Val extends ParallelExec> } /// @nodoc -abstract class _$$ParallelExec_OkCopyWith<$Res> { - factory _$$ParallelExec_OkCopyWith( - _$ParallelExec_Ok value, $Res Function(_$ParallelExec_Ok) then) = - __$$ParallelExec_OkCopyWithImpl<$Res>; +abstract class _$$ParallelExec_OkImplCopyWith<$Res> { + factory _$$ParallelExec_OkImplCopyWith(_$ParallelExec_OkImpl value, + $Res Function(_$ParallelExec_OkImpl) then) = + __$$ParallelExec_OkImplCopyWithImpl<$Res>; @useResult $Res call({List field0}); } /// @nodoc -class __$$ParallelExec_OkCopyWithImpl<$Res> - extends _$ParallelExecCopyWithImpl<$Res, _$ParallelExec_Ok> - implements _$$ParallelExec_OkCopyWith<$Res> { - __$$ParallelExec_OkCopyWithImpl( - _$ParallelExec_Ok _value, $Res Function(_$ParallelExec_Ok) _then) +class __$$ParallelExec_OkImplCopyWithImpl<$Res> + extends _$ParallelExecCopyWithImpl<$Res, _$ParallelExec_OkImpl> + implements _$$ParallelExec_OkImplCopyWith<$Res> { + __$$ParallelExec_OkImplCopyWithImpl( + _$ParallelExec_OkImpl _value, $Res Function(_$ParallelExec_OkImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1614,7 +1621,7 @@ class __$$ParallelExec_OkCopyWithImpl<$Res> $Res call({ Object? field0 = null, }) { - return _then(_$ParallelExec_Ok( + return _then(_$ParallelExec_OkImpl( null == field0 ? _value._field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -1625,8 +1632,8 @@ class __$$ParallelExec_OkCopyWithImpl<$Res> /// @nodoc -class _$ParallelExec_Ok implements ParallelExec_Ok { - const _$ParallelExec_Ok(final List field0) : _field0 = field0; +class _$ParallelExec_OkImpl implements ParallelExec_Ok { + const _$ParallelExec_OkImpl(final List field0) : _field0 = field0; final List _field0; @override @@ -1645,7 +1652,7 @@ class _$ParallelExec_Ok implements ParallelExec_Ok { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$ParallelExec_Ok && + other is _$ParallelExec_OkImpl && const DeepCollectionEquality().equals(other._field0, _field0)); } @@ -1656,8 +1663,9 @@ class _$ParallelExec_Ok implements ParallelExec_Ok { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ParallelExec_OkCopyWith<_$ParallelExec_Ok> get copyWith => - __$$ParallelExec_OkCopyWithImpl<_$ParallelExec_Ok>(this, _$identity); + _$$ParallelExec_OkImplCopyWith<_$ParallelExec_OkImpl> get copyWith => + __$$ParallelExec_OkImplCopyWithImpl<_$ParallelExec_OkImpl>( + this, _$identity); @override @optionalTypeArgs @@ -1729,30 +1737,31 @@ class _$ParallelExec_Ok implements ParallelExec_Ok { } abstract class ParallelExec_Ok implements ParallelExec { - const factory ParallelExec_Ok(final List field0) = _$ParallelExec_Ok; + const factory ParallelExec_Ok(final List field0) = + _$ParallelExec_OkImpl; @override List get field0; @JsonKey(ignore: true) - _$$ParallelExec_OkCopyWith<_$ParallelExec_Ok> get copyWith => + _$$ParallelExec_OkImplCopyWith<_$ParallelExec_OkImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$ParallelExec_ErrCopyWith<$Res> { - factory _$$ParallelExec_ErrCopyWith( - _$ParallelExec_Err value, $Res Function(_$ParallelExec_Err) then) = - __$$ParallelExec_ErrCopyWithImpl<$Res>; +abstract class _$$ParallelExec_ErrImplCopyWith<$Res> { + factory _$$ParallelExec_ErrImplCopyWith(_$ParallelExec_ErrImpl value, + $Res Function(_$ParallelExec_ErrImpl) then) = + __$$ParallelExec_ErrImplCopyWithImpl<$Res>; @useResult $Res call({String field0}); } /// @nodoc -class __$$ParallelExec_ErrCopyWithImpl<$Res> - extends _$ParallelExecCopyWithImpl<$Res, _$ParallelExec_Err> - implements _$$ParallelExec_ErrCopyWith<$Res> { - __$$ParallelExec_ErrCopyWithImpl( - _$ParallelExec_Err _value, $Res Function(_$ParallelExec_Err) _then) +class __$$ParallelExec_ErrImplCopyWithImpl<$Res> + extends _$ParallelExecCopyWithImpl<$Res, _$ParallelExec_ErrImpl> + implements _$$ParallelExec_ErrImplCopyWith<$Res> { + __$$ParallelExec_ErrImplCopyWithImpl(_$ParallelExec_ErrImpl _value, + $Res Function(_$ParallelExec_ErrImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1760,7 +1769,7 @@ class __$$ParallelExec_ErrCopyWithImpl<$Res> $Res call({ Object? field0 = null, }) { - return _then(_$ParallelExec_Err( + return _then(_$ParallelExec_ErrImpl( null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -1771,8 +1780,8 @@ class __$$ParallelExec_ErrCopyWithImpl<$Res> /// @nodoc -class _$ParallelExec_Err implements ParallelExec_Err { - const _$ParallelExec_Err(this.field0); +class _$ParallelExec_ErrImpl implements ParallelExec_Err { + const _$ParallelExec_ErrImpl(this.field0); @override final String field0; @@ -1786,7 +1795,7 @@ class _$ParallelExec_Err implements ParallelExec_Err { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$ParallelExec_Err && + other is _$ParallelExec_ErrImpl && (identical(other.field0, field0) || other.field0 == field0)); } @@ -1796,8 +1805,9 @@ class _$ParallelExec_Err implements ParallelExec_Err { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ParallelExec_ErrCopyWith<_$ParallelExec_Err> get copyWith => - __$$ParallelExec_ErrCopyWithImpl<_$ParallelExec_Err>(this, _$identity); + _$$ParallelExec_ErrImplCopyWith<_$ParallelExec_ErrImpl> get copyWith => + __$$ParallelExec_ErrImplCopyWithImpl<_$ParallelExec_ErrImpl>( + this, _$identity); @override @optionalTypeArgs @@ -1869,30 +1879,30 @@ class _$ParallelExec_Err implements ParallelExec_Err { } abstract class ParallelExec_Err implements ParallelExec { - const factory ParallelExec_Err(final String field0) = _$ParallelExec_Err; + const factory ParallelExec_Err(final String field0) = _$ParallelExec_ErrImpl; @override String get field0; @JsonKey(ignore: true) - _$$ParallelExec_ErrCopyWith<_$ParallelExec_Err> get copyWith => + _$$ParallelExec_ErrImplCopyWith<_$ParallelExec_ErrImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$ParallelExec_CallCopyWith<$Res> { - factory _$$ParallelExec_CallCopyWith( - _$ParallelExec_Call value, $Res Function(_$ParallelExec_Call) then) = - __$$ParallelExec_CallCopyWithImpl<$Res>; +abstract class _$$ParallelExec_CallImplCopyWith<$Res> { + factory _$$ParallelExec_CallImplCopyWith(_$ParallelExec_CallImpl value, + $Res Function(_$ParallelExec_CallImpl) then) = + __$$ParallelExec_CallImplCopyWithImpl<$Res>; @useResult $Res call({FunctionCall field0}); } /// @nodoc -class __$$ParallelExec_CallCopyWithImpl<$Res> - extends _$ParallelExecCopyWithImpl<$Res, _$ParallelExec_Call> - implements _$$ParallelExec_CallCopyWith<$Res> { - __$$ParallelExec_CallCopyWithImpl( - _$ParallelExec_Call _value, $Res Function(_$ParallelExec_Call) _then) +class __$$ParallelExec_CallImplCopyWithImpl<$Res> + extends _$ParallelExecCopyWithImpl<$Res, _$ParallelExec_CallImpl> + implements _$$ParallelExec_CallImplCopyWith<$Res> { + __$$ParallelExec_CallImplCopyWithImpl(_$ParallelExec_CallImpl _value, + $Res Function(_$ParallelExec_CallImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1900,7 +1910,7 @@ class __$$ParallelExec_CallCopyWithImpl<$Res> $Res call({ Object? field0 = null, }) { - return _then(_$ParallelExec_Call( + return _then(_$ParallelExec_CallImpl( null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -1911,8 +1921,8 @@ class __$$ParallelExec_CallCopyWithImpl<$Res> /// @nodoc -class _$ParallelExec_Call implements ParallelExec_Call { - const _$ParallelExec_Call(this.field0); +class _$ParallelExec_CallImpl implements ParallelExec_Call { + const _$ParallelExec_CallImpl(this.field0); @override final FunctionCall field0; @@ -1926,7 +1936,7 @@ class _$ParallelExec_Call implements ParallelExec_Call { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$ParallelExec_Call && + other is _$ParallelExec_CallImpl && (identical(other.field0, field0) || other.field0 == field0)); } @@ -1936,8 +1946,9 @@ class _$ParallelExec_Call implements ParallelExec_Call { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ParallelExec_CallCopyWith<_$ParallelExec_Call> get copyWith => - __$$ParallelExec_CallCopyWithImpl<_$ParallelExec_Call>(this, _$identity); + _$$ParallelExec_CallImplCopyWith<_$ParallelExec_CallImpl> get copyWith => + __$$ParallelExec_CallImplCopyWithImpl<_$ParallelExec_CallImpl>( + this, _$identity); @override @optionalTypeArgs @@ -2010,12 +2021,12 @@ class _$ParallelExec_Call implements ParallelExec_Call { abstract class ParallelExec_Call implements ParallelExec { const factory ParallelExec_Call(final FunctionCall field0) = - _$ParallelExec_Call; + _$ParallelExec_CallImpl; @override FunctionCall get field0; @JsonKey(ignore: true) - _$$ParallelExec_CallCopyWith<_$ParallelExec_Call> get copyWith => + _$$ParallelExec_CallImplCopyWith<_$ParallelExec_CallImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2110,20 +2121,20 @@ class _$WasmValCopyWithImpl<$Res, $Val extends WasmVal> } /// @nodoc -abstract class _$$WasmVal_i32CopyWith<$Res> { - factory _$$WasmVal_i32CopyWith( - _$WasmVal_i32 value, $Res Function(_$WasmVal_i32) then) = - __$$WasmVal_i32CopyWithImpl<$Res>; +abstract class _$$WasmVal_i32ImplCopyWith<$Res> { + factory _$$WasmVal_i32ImplCopyWith( + _$WasmVal_i32Impl value, $Res Function(_$WasmVal_i32Impl) then) = + __$$WasmVal_i32ImplCopyWithImpl<$Res>; @useResult $Res call({int field0}); } /// @nodoc -class __$$WasmVal_i32CopyWithImpl<$Res> - extends _$WasmValCopyWithImpl<$Res, _$WasmVal_i32> - implements _$$WasmVal_i32CopyWith<$Res> { - __$$WasmVal_i32CopyWithImpl( - _$WasmVal_i32 _value, $Res Function(_$WasmVal_i32) _then) +class __$$WasmVal_i32ImplCopyWithImpl<$Res> + extends _$WasmValCopyWithImpl<$Res, _$WasmVal_i32Impl> + implements _$$WasmVal_i32ImplCopyWith<$Res> { + __$$WasmVal_i32ImplCopyWithImpl( + _$WasmVal_i32Impl _value, $Res Function(_$WasmVal_i32Impl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2131,7 +2142,7 @@ class __$$WasmVal_i32CopyWithImpl<$Res> $Res call({ Object? field0 = null, }) { - return _then(_$WasmVal_i32( + return _then(_$WasmVal_i32Impl( null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -2142,8 +2153,8 @@ class __$$WasmVal_i32CopyWithImpl<$Res> /// @nodoc -class _$WasmVal_i32 implements WasmVal_i32 { - const _$WasmVal_i32(this.field0); +class _$WasmVal_i32Impl implements WasmVal_i32 { + const _$WasmVal_i32Impl(this.field0); @override final int field0; @@ -2157,7 +2168,7 @@ class _$WasmVal_i32 implements WasmVal_i32 { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$WasmVal_i32 && + other is _$WasmVal_i32Impl && (identical(other.field0, field0) || other.field0 == field0)); } @@ -2167,8 +2178,8 @@ class _$WasmVal_i32 implements WasmVal_i32 { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$WasmVal_i32CopyWith<_$WasmVal_i32> get copyWith => - __$$WasmVal_i32CopyWithImpl<_$WasmVal_i32>(this, _$identity); + _$$WasmVal_i32ImplCopyWith<_$WasmVal_i32Impl> get copyWith => + __$$WasmVal_i32ImplCopyWithImpl<_$WasmVal_i32Impl>(this, _$identity); @override @optionalTypeArgs @@ -2264,30 +2275,30 @@ class _$WasmVal_i32 implements WasmVal_i32 { } abstract class WasmVal_i32 implements WasmVal { - const factory WasmVal_i32(final int field0) = _$WasmVal_i32; + const factory WasmVal_i32(final int field0) = _$WasmVal_i32Impl; @override int get field0; @JsonKey(ignore: true) - _$$WasmVal_i32CopyWith<_$WasmVal_i32> get copyWith => + _$$WasmVal_i32ImplCopyWith<_$WasmVal_i32Impl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$WasmVal_i64CopyWith<$Res> { - factory _$$WasmVal_i64CopyWith( - _$WasmVal_i64 value, $Res Function(_$WasmVal_i64) then) = - __$$WasmVal_i64CopyWithImpl<$Res>; +abstract class _$$WasmVal_i64ImplCopyWith<$Res> { + factory _$$WasmVal_i64ImplCopyWith( + _$WasmVal_i64Impl value, $Res Function(_$WasmVal_i64Impl) then) = + __$$WasmVal_i64ImplCopyWithImpl<$Res>; @useResult $Res call({int field0}); } /// @nodoc -class __$$WasmVal_i64CopyWithImpl<$Res> - extends _$WasmValCopyWithImpl<$Res, _$WasmVal_i64> - implements _$$WasmVal_i64CopyWith<$Res> { - __$$WasmVal_i64CopyWithImpl( - _$WasmVal_i64 _value, $Res Function(_$WasmVal_i64) _then) +class __$$WasmVal_i64ImplCopyWithImpl<$Res> + extends _$WasmValCopyWithImpl<$Res, _$WasmVal_i64Impl> + implements _$$WasmVal_i64ImplCopyWith<$Res> { + __$$WasmVal_i64ImplCopyWithImpl( + _$WasmVal_i64Impl _value, $Res Function(_$WasmVal_i64Impl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2295,7 +2306,7 @@ class __$$WasmVal_i64CopyWithImpl<$Res> $Res call({ Object? field0 = null, }) { - return _then(_$WasmVal_i64( + return _then(_$WasmVal_i64Impl( null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -2306,8 +2317,8 @@ class __$$WasmVal_i64CopyWithImpl<$Res> /// @nodoc -class _$WasmVal_i64 implements WasmVal_i64 { - const _$WasmVal_i64(this.field0); +class _$WasmVal_i64Impl implements WasmVal_i64 { + const _$WasmVal_i64Impl(this.field0); @override final int field0; @@ -2321,7 +2332,7 @@ class _$WasmVal_i64 implements WasmVal_i64 { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$WasmVal_i64 && + other is _$WasmVal_i64Impl && (identical(other.field0, field0) || other.field0 == field0)); } @@ -2331,8 +2342,8 @@ class _$WasmVal_i64 implements WasmVal_i64 { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$WasmVal_i64CopyWith<_$WasmVal_i64> get copyWith => - __$$WasmVal_i64CopyWithImpl<_$WasmVal_i64>(this, _$identity); + _$$WasmVal_i64ImplCopyWith<_$WasmVal_i64Impl> get copyWith => + __$$WasmVal_i64ImplCopyWithImpl<_$WasmVal_i64Impl>(this, _$identity); @override @optionalTypeArgs @@ -2428,30 +2439,30 @@ class _$WasmVal_i64 implements WasmVal_i64 { } abstract class WasmVal_i64 implements WasmVal { - const factory WasmVal_i64(final int field0) = _$WasmVal_i64; + const factory WasmVal_i64(final int field0) = _$WasmVal_i64Impl; @override int get field0; @JsonKey(ignore: true) - _$$WasmVal_i64CopyWith<_$WasmVal_i64> get copyWith => + _$$WasmVal_i64ImplCopyWith<_$WasmVal_i64Impl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$WasmVal_f32CopyWith<$Res> { - factory _$$WasmVal_f32CopyWith( - _$WasmVal_f32 value, $Res Function(_$WasmVal_f32) then) = - __$$WasmVal_f32CopyWithImpl<$Res>; +abstract class _$$WasmVal_f32ImplCopyWith<$Res> { + factory _$$WasmVal_f32ImplCopyWith( + _$WasmVal_f32Impl value, $Res Function(_$WasmVal_f32Impl) then) = + __$$WasmVal_f32ImplCopyWithImpl<$Res>; @useResult $Res call({double field0}); } /// @nodoc -class __$$WasmVal_f32CopyWithImpl<$Res> - extends _$WasmValCopyWithImpl<$Res, _$WasmVal_f32> - implements _$$WasmVal_f32CopyWith<$Res> { - __$$WasmVal_f32CopyWithImpl( - _$WasmVal_f32 _value, $Res Function(_$WasmVal_f32) _then) +class __$$WasmVal_f32ImplCopyWithImpl<$Res> + extends _$WasmValCopyWithImpl<$Res, _$WasmVal_f32Impl> + implements _$$WasmVal_f32ImplCopyWith<$Res> { + __$$WasmVal_f32ImplCopyWithImpl( + _$WasmVal_f32Impl _value, $Res Function(_$WasmVal_f32Impl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2459,7 +2470,7 @@ class __$$WasmVal_f32CopyWithImpl<$Res> $Res call({ Object? field0 = null, }) { - return _then(_$WasmVal_f32( + return _then(_$WasmVal_f32Impl( null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -2470,8 +2481,8 @@ class __$$WasmVal_f32CopyWithImpl<$Res> /// @nodoc -class _$WasmVal_f32 implements WasmVal_f32 { - const _$WasmVal_f32(this.field0); +class _$WasmVal_f32Impl implements WasmVal_f32 { + const _$WasmVal_f32Impl(this.field0); @override final double field0; @@ -2485,7 +2496,7 @@ class _$WasmVal_f32 implements WasmVal_f32 { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$WasmVal_f32 && + other is _$WasmVal_f32Impl && (identical(other.field0, field0) || other.field0 == field0)); } @@ -2495,8 +2506,8 @@ class _$WasmVal_f32 implements WasmVal_f32 { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$WasmVal_f32CopyWith<_$WasmVal_f32> get copyWith => - __$$WasmVal_f32CopyWithImpl<_$WasmVal_f32>(this, _$identity); + _$$WasmVal_f32ImplCopyWith<_$WasmVal_f32Impl> get copyWith => + __$$WasmVal_f32ImplCopyWithImpl<_$WasmVal_f32Impl>(this, _$identity); @override @optionalTypeArgs @@ -2592,30 +2603,30 @@ class _$WasmVal_f32 implements WasmVal_f32 { } abstract class WasmVal_f32 implements WasmVal { - const factory WasmVal_f32(final double field0) = _$WasmVal_f32; + const factory WasmVal_f32(final double field0) = _$WasmVal_f32Impl; @override double get field0; @JsonKey(ignore: true) - _$$WasmVal_f32CopyWith<_$WasmVal_f32> get copyWith => + _$$WasmVal_f32ImplCopyWith<_$WasmVal_f32Impl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$WasmVal_f64CopyWith<$Res> { - factory _$$WasmVal_f64CopyWith( - _$WasmVal_f64 value, $Res Function(_$WasmVal_f64) then) = - __$$WasmVal_f64CopyWithImpl<$Res>; +abstract class _$$WasmVal_f64ImplCopyWith<$Res> { + factory _$$WasmVal_f64ImplCopyWith( + _$WasmVal_f64Impl value, $Res Function(_$WasmVal_f64Impl) then) = + __$$WasmVal_f64ImplCopyWithImpl<$Res>; @useResult $Res call({double field0}); } /// @nodoc -class __$$WasmVal_f64CopyWithImpl<$Res> - extends _$WasmValCopyWithImpl<$Res, _$WasmVal_f64> - implements _$$WasmVal_f64CopyWith<$Res> { - __$$WasmVal_f64CopyWithImpl( - _$WasmVal_f64 _value, $Res Function(_$WasmVal_f64) _then) +class __$$WasmVal_f64ImplCopyWithImpl<$Res> + extends _$WasmValCopyWithImpl<$Res, _$WasmVal_f64Impl> + implements _$$WasmVal_f64ImplCopyWith<$Res> { + __$$WasmVal_f64ImplCopyWithImpl( + _$WasmVal_f64Impl _value, $Res Function(_$WasmVal_f64Impl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2623,7 +2634,7 @@ class __$$WasmVal_f64CopyWithImpl<$Res> $Res call({ Object? field0 = null, }) { - return _then(_$WasmVal_f64( + return _then(_$WasmVal_f64Impl( null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -2634,8 +2645,8 @@ class __$$WasmVal_f64CopyWithImpl<$Res> /// @nodoc -class _$WasmVal_f64 implements WasmVal_f64 { - const _$WasmVal_f64(this.field0); +class _$WasmVal_f64Impl implements WasmVal_f64 { + const _$WasmVal_f64Impl(this.field0); @override final double field0; @@ -2649,7 +2660,7 @@ class _$WasmVal_f64 implements WasmVal_f64 { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$WasmVal_f64 && + other is _$WasmVal_f64Impl && (identical(other.field0, field0) || other.field0 == field0)); } @@ -2659,8 +2670,8 @@ class _$WasmVal_f64 implements WasmVal_f64 { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$WasmVal_f64CopyWith<_$WasmVal_f64> get copyWith => - __$$WasmVal_f64CopyWithImpl<_$WasmVal_f64>(this, _$identity); + _$$WasmVal_f64ImplCopyWith<_$WasmVal_f64Impl> get copyWith => + __$$WasmVal_f64ImplCopyWithImpl<_$WasmVal_f64Impl>(this, _$identity); @override @optionalTypeArgs @@ -2756,30 +2767,30 @@ class _$WasmVal_f64 implements WasmVal_f64 { } abstract class WasmVal_f64 implements WasmVal { - const factory WasmVal_f64(final double field0) = _$WasmVal_f64; + const factory WasmVal_f64(final double field0) = _$WasmVal_f64Impl; @override double get field0; @JsonKey(ignore: true) - _$$WasmVal_f64CopyWith<_$WasmVal_f64> get copyWith => + _$$WasmVal_f64ImplCopyWith<_$WasmVal_f64Impl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$WasmVal_v128CopyWith<$Res> { - factory _$$WasmVal_v128CopyWith( - _$WasmVal_v128 value, $Res Function(_$WasmVal_v128) then) = - __$$WasmVal_v128CopyWithImpl<$Res>; +abstract class _$$WasmVal_v128ImplCopyWith<$Res> { + factory _$$WasmVal_v128ImplCopyWith( + _$WasmVal_v128Impl value, $Res Function(_$WasmVal_v128Impl) then) = + __$$WasmVal_v128ImplCopyWithImpl<$Res>; @useResult $Res call({U8Array16 field0}); } /// @nodoc -class __$$WasmVal_v128CopyWithImpl<$Res> - extends _$WasmValCopyWithImpl<$Res, _$WasmVal_v128> - implements _$$WasmVal_v128CopyWith<$Res> { - __$$WasmVal_v128CopyWithImpl( - _$WasmVal_v128 _value, $Res Function(_$WasmVal_v128) _then) +class __$$WasmVal_v128ImplCopyWithImpl<$Res> + extends _$WasmValCopyWithImpl<$Res, _$WasmVal_v128Impl> + implements _$$WasmVal_v128ImplCopyWith<$Res> { + __$$WasmVal_v128ImplCopyWithImpl( + _$WasmVal_v128Impl _value, $Res Function(_$WasmVal_v128Impl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2787,7 +2798,7 @@ class __$$WasmVal_v128CopyWithImpl<$Res> $Res call({ Object? field0 = null, }) { - return _then(_$WasmVal_v128( + return _then(_$WasmVal_v128Impl( null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -2798,8 +2809,8 @@ class __$$WasmVal_v128CopyWithImpl<$Res> /// @nodoc -class _$WasmVal_v128 implements WasmVal_v128 { - const _$WasmVal_v128(this.field0); +class _$WasmVal_v128Impl implements WasmVal_v128 { + const _$WasmVal_v128Impl(this.field0); @override final U8Array16 field0; @@ -2813,7 +2824,7 @@ class _$WasmVal_v128 implements WasmVal_v128 { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$WasmVal_v128 && + other is _$WasmVal_v128Impl && const DeepCollectionEquality().equals(other.field0, field0)); } @@ -2824,8 +2835,8 @@ class _$WasmVal_v128 implements WasmVal_v128 { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$WasmVal_v128CopyWith<_$WasmVal_v128> get copyWith => - __$$WasmVal_v128CopyWithImpl<_$WasmVal_v128>(this, _$identity); + _$$WasmVal_v128ImplCopyWith<_$WasmVal_v128Impl> get copyWith => + __$$WasmVal_v128ImplCopyWithImpl<_$WasmVal_v128Impl>(this, _$identity); @override @optionalTypeArgs @@ -2921,30 +2932,30 @@ class _$WasmVal_v128 implements WasmVal_v128 { } abstract class WasmVal_v128 implements WasmVal { - const factory WasmVal_v128(final U8Array16 field0) = _$WasmVal_v128; + const factory WasmVal_v128(final U8Array16 field0) = _$WasmVal_v128Impl; @override U8Array16 get field0; @JsonKey(ignore: true) - _$$WasmVal_v128CopyWith<_$WasmVal_v128> get copyWith => + _$$WasmVal_v128ImplCopyWith<_$WasmVal_v128Impl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$WasmVal_funcRefCopyWith<$Res> { - factory _$$WasmVal_funcRefCopyWith( - _$WasmVal_funcRef value, $Res Function(_$WasmVal_funcRef) then) = - __$$WasmVal_funcRefCopyWithImpl<$Res>; +abstract class _$$WasmVal_funcRefImplCopyWith<$Res> { + factory _$$WasmVal_funcRefImplCopyWith(_$WasmVal_funcRefImpl value, + $Res Function(_$WasmVal_funcRefImpl) then) = + __$$WasmVal_funcRefImplCopyWithImpl<$Res>; @useResult $Res call({WFunc? field0}); } /// @nodoc -class __$$WasmVal_funcRefCopyWithImpl<$Res> - extends _$WasmValCopyWithImpl<$Res, _$WasmVal_funcRef> - implements _$$WasmVal_funcRefCopyWith<$Res> { - __$$WasmVal_funcRefCopyWithImpl( - _$WasmVal_funcRef _value, $Res Function(_$WasmVal_funcRef) _then) +class __$$WasmVal_funcRefImplCopyWithImpl<$Res> + extends _$WasmValCopyWithImpl<$Res, _$WasmVal_funcRefImpl> + implements _$$WasmVal_funcRefImplCopyWith<$Res> { + __$$WasmVal_funcRefImplCopyWithImpl( + _$WasmVal_funcRefImpl _value, $Res Function(_$WasmVal_funcRefImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2952,7 +2963,7 @@ class __$$WasmVal_funcRefCopyWithImpl<$Res> $Res call({ Object? field0 = freezed, }) { - return _then(_$WasmVal_funcRef( + return _then(_$WasmVal_funcRefImpl( freezed == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -2963,8 +2974,8 @@ class __$$WasmVal_funcRefCopyWithImpl<$Res> /// @nodoc -class _$WasmVal_funcRef implements WasmVal_funcRef { - const _$WasmVal_funcRef([this.field0]); +class _$WasmVal_funcRefImpl implements WasmVal_funcRef { + const _$WasmVal_funcRefImpl([this.field0]); @override final WFunc? field0; @@ -2978,7 +2989,7 @@ class _$WasmVal_funcRef implements WasmVal_funcRef { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$WasmVal_funcRef && + other is _$WasmVal_funcRefImpl && (identical(other.field0, field0) || other.field0 == field0)); } @@ -2988,8 +2999,9 @@ class _$WasmVal_funcRef implements WasmVal_funcRef { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$WasmVal_funcRefCopyWith<_$WasmVal_funcRef> get copyWith => - __$$WasmVal_funcRefCopyWithImpl<_$WasmVal_funcRef>(this, _$identity); + _$$WasmVal_funcRefImplCopyWith<_$WasmVal_funcRefImpl> get copyWith => + __$$WasmVal_funcRefImplCopyWithImpl<_$WasmVal_funcRefImpl>( + this, _$identity); @override @optionalTypeArgs @@ -3085,30 +3097,30 @@ class _$WasmVal_funcRef implements WasmVal_funcRef { } abstract class WasmVal_funcRef implements WasmVal { - const factory WasmVal_funcRef([final WFunc? field0]) = _$WasmVal_funcRef; + const factory WasmVal_funcRef([final WFunc? field0]) = _$WasmVal_funcRefImpl; @override WFunc? get field0; @JsonKey(ignore: true) - _$$WasmVal_funcRefCopyWith<_$WasmVal_funcRef> get copyWith => + _$$WasmVal_funcRefImplCopyWith<_$WasmVal_funcRefImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$WasmVal_externRefCopyWith<$Res> { - factory _$$WasmVal_externRefCopyWith( - _$WasmVal_externRef value, $Res Function(_$WasmVal_externRef) then) = - __$$WasmVal_externRefCopyWithImpl<$Res>; +abstract class _$$WasmVal_externRefImplCopyWith<$Res> { + factory _$$WasmVal_externRefImplCopyWith(_$WasmVal_externRefImpl value, + $Res Function(_$WasmVal_externRefImpl) then) = + __$$WasmVal_externRefImplCopyWithImpl<$Res>; @useResult $Res call({int? field0}); } /// @nodoc -class __$$WasmVal_externRefCopyWithImpl<$Res> - extends _$WasmValCopyWithImpl<$Res, _$WasmVal_externRef> - implements _$$WasmVal_externRefCopyWith<$Res> { - __$$WasmVal_externRefCopyWithImpl( - _$WasmVal_externRef _value, $Res Function(_$WasmVal_externRef) _then) +class __$$WasmVal_externRefImplCopyWithImpl<$Res> + extends _$WasmValCopyWithImpl<$Res, _$WasmVal_externRefImpl> + implements _$$WasmVal_externRefImplCopyWith<$Res> { + __$$WasmVal_externRefImplCopyWithImpl(_$WasmVal_externRefImpl _value, + $Res Function(_$WasmVal_externRefImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3116,7 +3128,7 @@ class __$$WasmVal_externRefCopyWithImpl<$Res> $Res call({ Object? field0 = freezed, }) { - return _then(_$WasmVal_externRef( + return _then(_$WasmVal_externRefImpl( freezed == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -3127,8 +3139,8 @@ class __$$WasmVal_externRefCopyWithImpl<$Res> /// @nodoc -class _$WasmVal_externRef implements WasmVal_externRef { - const _$WasmVal_externRef([this.field0]); +class _$WasmVal_externRefImpl implements WasmVal_externRef { + const _$WasmVal_externRefImpl([this.field0]); @override final int? field0; @@ -3142,7 +3154,7 @@ class _$WasmVal_externRef implements WasmVal_externRef { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$WasmVal_externRef && + other is _$WasmVal_externRefImpl && (identical(other.field0, field0) || other.field0 == field0)); } @@ -3152,8 +3164,9 @@ class _$WasmVal_externRef implements WasmVal_externRef { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$WasmVal_externRefCopyWith<_$WasmVal_externRef> get copyWith => - __$$WasmVal_externRefCopyWithImpl<_$WasmVal_externRef>(this, _$identity); + _$$WasmVal_externRefImplCopyWith<_$WasmVal_externRefImpl> get copyWith => + __$$WasmVal_externRefImplCopyWithImpl<_$WasmVal_externRefImpl>( + this, _$identity); @override @optionalTypeArgs @@ -3249,11 +3262,12 @@ class _$WasmVal_externRef implements WasmVal_externRef { } abstract class WasmVal_externRef implements WasmVal { - const factory WasmVal_externRef([final int? field0]) = _$WasmVal_externRef; + const factory WasmVal_externRef([final int? field0]) = + _$WasmVal_externRefImpl; @override int? get field0; @JsonKey(ignore: true) - _$$WasmVal_externRefCopyWith<_$WasmVal_externRef> get copyWith => + _$$WasmVal_externRefImplCopyWith<_$WasmVal_externRefImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/packages/wasm_run/lib/src/bridge_generated.io.dart b/packages/wasm_run/lib/src/bridge_generated.io.dart index 72922f48..74ab0501 100644 --- a/packages/wasm_run/lib/src/bridge_generated.io.dart +++ b/packages/wasm_run/lib/src/bridge_generated.io.dart @@ -1,5 +1,5 @@ // AUTO GENERATED FILE, DO NOT EDIT. -// Generated by `flutter_rust_bridge`@ 1.72.2. +// Generated by `flutter_rust_bridge`@ 1.82.1. // ignore_for_file: non_constant_identifier_names, unused_element, duplicate_ignore, directives_ordering, curly_braces_in_flow_control_structures, unnecessary_lambdas, slash_for_doc_comments, prefer_const_literals_to_create_immutables, implicit_dynamic_list_literal, duplicate_import, unused_import, unnecessary_import, prefer_single_quotes, prefer_const_constructors, use_super_parameters, always_use_package_imports, annotate_overrides, invalid_use_of_protected_member, constant_identifier_names, invalid_use_of_internal_member, prefer_is_empty, unnecessary_const import 'dart:convert'; @@ -2302,9 +2302,9 @@ class WasmRunDartWire implements FlutterRustBridgeWireBase { } late final _new_box_autoadd_module_config_wasmtime_0Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer - Function()>>('new_box_autoadd_module_config_wasmtime_0'); + ffi + .NativeFunction Function()>>( + 'new_box_autoadd_module_config_wasmtime_0'); late final _new_box_autoadd_module_config_wasmtime_0 = _new_box_autoadd_module_config_wasmtime_0Ptr .asFunction Function()>(); @@ -2481,9 +2481,9 @@ class WasmRunDartWire implements FlutterRustBridgeWireBase { } late final _new_list_value_ty_0Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int32)>>('new_list_value_ty_0'); + ffi + .NativeFunction Function(ffi.Int32)>>( + 'new_list_value_ty_0'); late final _new_list_value_ty_0 = _new_list_value_ty_0Ptr .asFunction Function(int)>(); @@ -2496,9 +2496,9 @@ class WasmRunDartWire implements FlutterRustBridgeWireBase { } late final _new_list_wasm_val_0Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int32)>>('new_list_wasm_val_0'); + ffi + .NativeFunction Function(ffi.Int32)>>( + 'new_list_wasm_val_0'); late final _new_list_wasm_val_0 = _new_list_wasm_val_0Ptr .asFunction Function(int)>(); @@ -2511,9 +2511,9 @@ class WasmRunDartWire implements FlutterRustBridgeWireBase { } late final _new_uint_8_list_0Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int32)>>('new_uint_8_list_0'); + ffi + .NativeFunction Function(ffi.Int32)>>( + 'new_uint_8_list_0'); late final _new_uint_8_list_0 = _new_uint_8_list_0Ptr .asFunction Function(int)>(); @@ -2860,57 +2860,57 @@ class WasmRunDartWire implements FlutterRustBridgeWireBase { _free_WireSyncReturnPtr.asFunction(); } -class _Dart_Handle extends ffi.Opaque {} +final class _Dart_Handle extends ffi.Opaque {} -class wire_ArcStdSyncMutexModule extends ffi.Struct { +final class wire_ArcStdSyncMutexModule extends ffi.Struct { external ffi.Pointer ptr; } -class wire_CompiledModule extends ffi.Struct { +final class wire_CompiledModule extends ffi.Struct { external wire_ArcStdSyncMutexModule field0; } -class wire_uint_8_list extends ffi.Struct { +final class wire_uint_8_list extends ffi.Struct { external ffi.Pointer ptr; @ffi.Int32() external int len; } -class wire_StringList extends ffi.Struct { +final class wire_StringList extends ffi.Struct { external ffi.Pointer> ptr; @ffi.Int32() external int len; } -class wire_EnvVariable extends ffi.Struct { +final class wire_EnvVariable extends ffi.Struct { external ffi.Pointer name; external ffi.Pointer value; } -class wire_list_env_variable extends ffi.Struct { +final class wire_list_env_variable extends ffi.Struct { external ffi.Pointer ptr; @ffi.Int32() external int len; } -class wire_PreopenedDir extends ffi.Struct { +final class wire_PreopenedDir extends ffi.Struct { external ffi.Pointer wasm_guest_path; external ffi.Pointer host_path; } -class wire_list_preopened_dir extends ffi.Struct { +final class wire_list_preopened_dir extends ffi.Struct { external ffi.Pointer ptr; @ffi.Int32() external int len; } -class wire_WasiConfigNative extends ffi.Struct { +final class wire_WasiConfigNative extends ffi.Struct { @ffi.Bool() external bool capture_stdout; @@ -2935,7 +2935,7 @@ class wire_WasiConfigNative extends ffi.Struct { external ffi.Pointer preopened_dirs; } -class wire_WasiStackLimits extends ffi.Struct { +final class wire_WasiStackLimits extends ffi.Struct { @ffi.UintPtr() external int initial_value_stack_height; @@ -2946,7 +2946,7 @@ class wire_WasiStackLimits extends ffi.Struct { external int maximum_recursion_depth; } -class wire_ModuleConfigWasmi extends ffi.Struct { +final class wire_ModuleConfigWasmi extends ffi.Struct { external ffi.Pointer stack_limits; external ffi.Pointer cached_stacks; @@ -2964,7 +2964,7 @@ class wire_ModuleConfigWasmi extends ffi.Struct { external ffi.Pointer floats; } -class wire_ModuleConfigWasmtime extends ffi.Struct { +final class wire_ModuleConfigWasmtime extends ffi.Struct { external ffi.Pointer debug_info; external ffi.Pointer wasm_backtrace; @@ -2996,7 +2996,7 @@ class wire_ModuleConfigWasmtime extends ffi.Struct { external ffi.Pointer generate_address_map; } -class wire_ModuleConfig extends ffi.Struct { +final class wire_ModuleConfig extends ffi.Struct { external ffi.Pointer multi_value; external ffi.Pointer bulk_memory; @@ -3010,67 +3010,67 @@ class wire_ModuleConfig extends ffi.Struct { external ffi.Pointer wasmtime; } -class wire_WasmRunInstanceId extends ffi.Struct { +final class wire_WasmRunInstanceId extends ffi.Struct { @ffi.Uint32() external int field0; } -class wire_CallStack extends ffi.Struct { +final class wire_CallStack extends ffi.Struct { external ffi.Pointer ptr; } -class wire_WasmRunModuleId extends ffi.Struct { +final class wire_WasmRunModuleId extends ffi.Struct { @ffi.Uint32() external int field0; external wire_CallStack field1; } -class wire_WFunc extends ffi.Struct { +final class wire_WFunc extends ffi.Struct { external ffi.Pointer ptr; } -class wire_ExternalValue_Func extends ffi.Struct { +final class wire_ExternalValue_Func extends ffi.Struct { external wire_WFunc field0; } -class wire_Global extends ffi.Struct { +final class wire_Global extends ffi.Struct { external ffi.Pointer ptr; } -class wire_ExternalValue_Global extends ffi.Struct { +final class wire_ExternalValue_Global extends ffi.Struct { external wire_Global field0; } -class wire_Table extends ffi.Struct { +final class wire_Table extends ffi.Struct { external ffi.Pointer ptr; } -class wire_ExternalValue_Table extends ffi.Struct { +final class wire_ExternalValue_Table extends ffi.Struct { external wire_Table field0; } -class wire_Memory extends ffi.Struct { +final class wire_Memory extends ffi.Struct { external ffi.Pointer ptr; } -class wire_ExternalValue_Memory extends ffi.Struct { +final class wire_ExternalValue_Memory extends ffi.Struct { external wire_Memory field0; } -class wire_ArcRwLockSharedMemory extends ffi.Struct { +final class wire_ArcRwLockSharedMemory extends ffi.Struct { external ffi.Pointer ptr; } -class wire_WasmRunSharedMemory extends ffi.Struct { +final class wire_WasmRunSharedMemory extends ffi.Struct { external wire_ArcRwLockSharedMemory field0; } -class wire_ExternalValue_SharedMemory extends ffi.Struct { +final class wire_ExternalValue_SharedMemory extends ffi.Struct { external ffi.Pointer field0; } -class ExternalValueKind extends ffi.Union { +final class ExternalValueKind extends ffi.Union { external ffi.Pointer Func; external ffi.Pointer Global; @@ -3082,14 +3082,14 @@ class ExternalValueKind extends ffi.Union { external ffi.Pointer SharedMemory; } -class wire_ExternalValue extends ffi.Struct { +final class wire_ExternalValue extends ffi.Struct { @ffi.Int32() external int tag; external ffi.Pointer kind; } -class wire_ModuleImport extends ffi.Struct { +final class wire_ModuleImport extends ffi.Struct { external ffi.Pointer module; external ffi.Pointer name; @@ -3097,46 +3097,46 @@ class wire_ModuleImport extends ffi.Struct { external wire_ExternalValue value; } -class wire_list_module_import extends ffi.Struct { +final class wire_list_module_import extends ffi.Struct { external ffi.Pointer ptr; @ffi.Int32() external int len; } -class wire_WasmVal_i32 extends ffi.Struct { +final class wire_WasmVal_i32 extends ffi.Struct { @ffi.Int32() external int field0; } -class wire_WasmVal_i64 extends ffi.Struct { +final class wire_WasmVal_i64 extends ffi.Struct { @ffi.Int64() external int field0; } -class wire_WasmVal_f32 extends ffi.Struct { +final class wire_WasmVal_f32 extends ffi.Struct { @ffi.Float() external double field0; } -class wire_WasmVal_f64 extends ffi.Struct { +final class wire_WasmVal_f64 extends ffi.Struct { @ffi.Double() external double field0; } -class wire_WasmVal_v128 extends ffi.Struct { +final class wire_WasmVal_v128 extends ffi.Struct { external ffi.Pointer field0; } -class wire_WasmVal_funcRef extends ffi.Struct { +final class wire_WasmVal_funcRef extends ffi.Struct { external ffi.Pointer field0; } -class wire_WasmVal_externRef extends ffi.Struct { +final class wire_WasmVal_externRef extends ffi.Struct { external ffi.Pointer field0; } -class WasmValKind extends ffi.Union { +final class WasmValKind extends ffi.Union { external ffi.Pointer i32; external ffi.Pointer i64; @@ -3152,28 +3152,28 @@ class WasmValKind extends ffi.Union { external ffi.Pointer externRef; } -class wire_WasmVal extends ffi.Struct { +final class wire_WasmVal extends ffi.Struct { @ffi.Int32() external int tag; external ffi.Pointer kind; } -class wire_list_wasm_val extends ffi.Struct { +final class wire_list_wasm_val extends ffi.Struct { external ffi.Pointer ptr; @ffi.Int32() external int len; } -class wire_list_value_ty extends ffi.Struct { +final class wire_list_value_ty extends ffi.Struct { external ffi.Pointer ptr; @ffi.Int32() external int len; } -class wire_MemoryTy extends ffi.Struct { +final class wire_MemoryTy extends ffi.Struct { @ffi.Bool() external bool shared; @@ -3183,14 +3183,14 @@ class wire_MemoryTy extends ffi.Struct { external ffi.Pointer maximum; } -class wire_TableArgs extends ffi.Struct { +final class wire_TableArgs extends ffi.Struct { @ffi.Uint32() external int minimum; external ffi.Pointer maximum; } -class wire_Atomics extends ffi.Struct { +final class wire_Atomics extends ffi.Struct { @ffi.UintPtr() external int field0; } diff --git a/packages/wasm_run/lib/src/bridge_generated.web.dart b/packages/wasm_run/lib/src/bridge_generated.web.dart index e024c7fc..69ce07c6 100644 --- a/packages/wasm_run/lib/src/bridge_generated.web.dart +++ b/packages/wasm_run/lib/src/bridge_generated.web.dart @@ -1,5 +1,5 @@ // AUTO GENERATED FILE, DO NOT EDIT. -// Generated by `flutter_rust_bridge`@ 1.72.2. +// Generated by `flutter_rust_bridge`@ 1.82.1. // ignore_for_file: non_constant_identifier_names, unused_element, duplicate_ignore, directives_ordering, curly_braces_in_flow_control_structures, unnecessary_lambdas, slash_for_doc_comments, prefer_const_literals_to_create_immutables, implicit_dynamic_list_literal, duplicate_import, unused_import, unnecessary_import, prefer_single_quotes, prefer_const_constructors, use_super_parameters, always_use_package_imports, annotate_overrides, invalid_use_of_protected_member, constant_identifier_names, invalid_use_of_internal_member, prefer_is_empty, unnecessary_const import 'dart:convert'; diff --git a/packages/wasm_run/native/Cargo.toml b/packages/wasm_run/native/Cargo.toml index 017d1009..fd51eabd 100644 --- a/packages/wasm_run/native/Cargo.toml +++ b/packages/wasm_run/native/Cargo.toml @@ -7,10 +7,10 @@ edition = "2021" crate-type = ["staticlib", "cdylib"] [build-dependencies] -flutter_rust_bridge_codegen = "1.72.*" +flutter_rust_bridge_codegen = "1.82.*" [dependencies] -flutter_rust_bridge = "1.72.*" +flutter_rust_bridge = "1.82.*" anyhow = "1.0.0" once_cell = "1.0.0" wat = "1.0.61" diff --git a/packages/wasm_run/native/Cargo.wasmi.toml b/packages/wasm_run/native/Cargo.wasmi.toml index 9d72ee9c..6cf0dd51 100644 --- a/packages/wasm_run/native/Cargo.wasmi.toml +++ b/packages/wasm_run/native/Cargo.wasmi.toml @@ -7,10 +7,10 @@ edition = "2021" crate-type = ["staticlib", "cdylib"] [build-dependencies] -flutter_rust_bridge_codegen = "1.72.*" +flutter_rust_bridge_codegen = "1.82.*" [dependencies] -flutter_rust_bridge = "1.72.*" +flutter_rust_bridge = "1.82.*" anyhow = "1.0.0" once_cell = "1.0.0" wat = "1.0.61" diff --git a/packages/wasm_run/native/Cargo.wasmtime.toml b/packages/wasm_run/native/Cargo.wasmtime.toml index 017d1009..fd51eabd 100644 --- a/packages/wasm_run/native/Cargo.wasmtime.toml +++ b/packages/wasm_run/native/Cargo.wasmtime.toml @@ -7,10 +7,10 @@ edition = "2021" crate-type = ["staticlib", "cdylib"] [build-dependencies] -flutter_rust_bridge_codegen = "1.72.*" +flutter_rust_bridge_codegen = "1.82.*" [dependencies] -flutter_rust_bridge = "1.72.*" +flutter_rust_bridge = "1.82.*" anyhow = "1.0.0" once_cell = "1.0.0" wat = "1.0.61" diff --git a/packages/wasm_run/native/src/bridge_generated.rs b/packages/wasm_run/native/src/bridge_generated.rs index 7de77221..4f8256fb 100644 --- a/packages/wasm_run/native/src/bridge_generated.rs +++ b/packages/wasm_run/native/src/bridge_generated.rs @@ -9,10 +9,11 @@ clippy::too_many_arguments )] // AUTO GENERATED FILE, DO NOT EDIT. -// Generated by `flutter_rust_bridge`@ 1.72.2. +// Generated by `flutter_rust_bridge`@ 1.82.1. use crate::api::*; use core::panic::UnwindSafe; +use flutter_rust_bridge::rust2dart::IntoIntoDart; use flutter_rust_bridge::*; use std::ffi::c_void; use std::sync::Arc; @@ -74,7 +75,7 @@ fn wire_module_builder_impl( ) } fn wire_parse_wat_format_impl(port_: MessagePort, wat: impl Wire2Api + UnwindSafe) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap( + FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, Vec, _>( WrapInfo { debug_name: "parse_wat_format", port: Some(port_), @@ -91,7 +92,7 @@ fn wire_compile_wasm_impl( module_wasm: impl Wire2Api> + UnwindSafe, config: impl Wire2Api + UnwindSafe, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap( + FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, CompiledModule, _>( WrapInfo { debug_name: "compile_wasm", port: Some(port_), @@ -132,7 +133,7 @@ fn wire_wasm_features_for_config_impl( }, move || { let api_config = config.wire2api(); - Ok(wasm_features_for_config(api_config)) + Result::<_, ()>::Ok(wasm_features_for_config(api_config)) }, ) } @@ -143,7 +144,7 @@ fn wire_wasm_runtime_features_impl() -> support::WireSyncReturn { port: None, mode: FfiCallMode::Sync, }, - move || Ok(wasm_runtime_features()), + move || Result::<_, ()>::Ok(wasm_runtime_features()), ) } fn wire_exports__method__WasmRunInstanceId_impl( @@ -157,7 +158,7 @@ fn wire_exports__method__WasmRunInstanceId_impl( }, move || { let api_that = that.wire2api(); - Ok(WasmRunInstanceId::exports(&api_that)) + Result::<_, ()>::Ok(WasmRunInstanceId::exports(&api_that)) }, ) } @@ -180,7 +181,7 @@ fn wire_instantiate__method__WasmRunModuleId_impl( port_: MessagePort, that: impl Wire2Api + UnwindSafe, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap( + FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, WasmRunInstanceId, _>( WrapInfo { debug_name: "instantiate__method__WasmRunModuleId", port: Some(port_), @@ -214,7 +215,7 @@ fn wire_stdio_stream__method__WasmRunModuleId_impl( that: impl Wire2Api + UnwindSafe, kind: impl Wire2Api + UnwindSafe, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap( + FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, (), _>( WrapInfo { debug_name: "stdio_stream__method__WasmRunModuleId", port: Some(port_), @@ -224,7 +225,11 @@ fn wire_stdio_stream__method__WasmRunModuleId_impl( let api_that = that.wire2api(); let api_kind = kind.wire2api(); move |task_callback| { - WasmRunModuleId::stdio_stream(&api_that, task_callback.stream_sink(), api_kind) + WasmRunModuleId::stdio_stream( + &api_that, + task_callback.stream_sink::<_, Vec>(), + api_kind, + ) } }, ) @@ -233,7 +238,7 @@ fn wire_dispose__method__WasmRunModuleId_impl( port_: MessagePort, that: impl Wire2Api + UnwindSafe, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap( + FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, (), _>( WrapInfo { debug_name: "dispose__method__WasmRunModuleId", port: Some(port_), @@ -270,7 +275,7 @@ fn wire_call_function_handle__method__WasmRunModuleId_impl( func: impl Wire2Api> + UnwindSafe, args: impl Wire2Api> + UnwindSafe, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap( + FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, Vec, _>( WrapInfo { debug_name: "call_function_handle__method__WasmRunModuleId", port: Some(port_), @@ -293,7 +298,7 @@ fn wire_call_function_handle_parallel__method__WasmRunModuleId_impl( args: impl Wire2Api> + UnwindSafe, num_tasks: impl Wire2Api + UnwindSafe, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap( + FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, (), _>( WrapInfo { debug_name: "call_function_handle_parallel__method__WasmRunModuleId", port: Some(port_), @@ -305,12 +310,12 @@ fn wire_call_function_handle_parallel__method__WasmRunModuleId_impl( let api_args = args.wire2api(); let api_num_tasks = num_tasks.wire2api(); move |task_callback| { - Ok(WasmRunModuleId::call_function_handle_parallel( + Result::<_, ()>::Ok(WasmRunModuleId::call_function_handle_parallel( &api_that, api_func_name, api_args, api_num_tasks, - task_callback.stream_sink(), + task_callback.stream_sink::<_, ParallelExec>(), )) } }, @@ -348,7 +353,7 @@ fn wire_get_function_type__method__WasmRunModuleId_impl( move || { let api_that = that.wire2api(); let api_func = func.wire2api(); - Ok(WasmRunModuleId::get_function_type(&api_that, api_func)) + Result::<_, ()>::Ok(WasmRunModuleId::get_function_type(&api_that, api_func)) }, ) } @@ -449,7 +454,7 @@ fn wire_get_global_type__method__WasmRunModuleId_impl( move || { let api_that = that.wire2api(); let api_global = global.wire2api(); - Ok(WasmRunModuleId::get_global_type(&api_that, api_global)) + Result::<_, ()>::Ok(WasmRunModuleId::get_global_type(&api_that, api_global)) }, ) } @@ -466,7 +471,7 @@ fn wire_get_global_value__method__WasmRunModuleId_impl( move || { let api_that = that.wire2api(); let api_global = global.wire2api(); - Ok(WasmRunModuleId::get_global_value(&api_that, api_global)) + Result::<_, ()>::Ok(WasmRunModuleId::get_global_value(&api_that, api_global)) }, ) } @@ -502,7 +507,7 @@ fn wire_get_memory_type__method__WasmRunModuleId_impl( move || { let api_that = that.wire2api(); let api_memory = memory.wire2api(); - Ok(WasmRunModuleId::get_memory_type(&api_that, api_memory)) + Result::<_, ()>::Ok(WasmRunModuleId::get_memory_type(&api_that, api_memory)) }, ) } @@ -519,7 +524,7 @@ fn wire_get_memory_data__method__WasmRunModuleId_impl( move || { let api_that = that.wire2api(); let api_memory = memory.wire2api(); - Ok(WasmRunModuleId::get_memory_data(&api_that, api_memory)) + Result::<_, ()>::Ok(WasmRunModuleId::get_memory_data(&api_that, api_memory)) }, ) } @@ -536,7 +541,7 @@ fn wire_get_memory_data_pointer__method__WasmRunModuleId_impl( move || { let api_that = that.wire2api(); let api_memory = memory.wire2api(); - Ok(WasmRunModuleId::get_memory_data_pointer( + Result::<_, ()>::Ok(WasmRunModuleId::get_memory_data_pointer( &api_that, api_memory, )) }, @@ -555,7 +560,7 @@ fn wire_get_memory_data_pointer_and_length__method__WasmRunModuleId_impl( move || { let api_that = that.wire2api(); let api_memory = memory.wire2api(); - Ok(WasmRunModuleId::get_memory_data_pointer_and_length( + Result::<_, ()>::Ok(WasmRunModuleId::get_memory_data_pointer_and_length( &api_that, api_memory, )) }, @@ -595,7 +600,7 @@ fn wire_get_memory_pages__method__WasmRunModuleId_impl( move || { let api_that = that.wire2api(); let api_memory = memory.wire2api(); - Ok(WasmRunModuleId::get_memory_pages(&api_that, api_memory)) + Result::<_, ()>::Ok(WasmRunModuleId::get_memory_pages(&api_that, api_memory)) }, ) } @@ -652,7 +657,7 @@ fn wire_get_table_size__method__WasmRunModuleId_impl( move || { let api_that = that.wire2api(); let api_table = table.wire2api(); - Ok(WasmRunModuleId::get_table_size(&api_that, api_table)) + Result::<_, ()>::Ok(WasmRunModuleId::get_table_size(&api_that, api_table)) }, ) } @@ -669,7 +674,7 @@ fn wire_get_table_type__method__WasmRunModuleId_impl( move || { let api_that = that.wire2api(); let api_table = table.wire2api(); - Ok(WasmRunModuleId::get_table_type(&api_that, api_table)) + Result::<_, ()>::Ok(WasmRunModuleId::get_table_type(&api_that, api_table)) }, ) } @@ -709,7 +714,7 @@ fn wire_get_table__method__WasmRunModuleId_impl( let api_that = that.wire2api(); let api_table = table.wire2api(); let api_index = index.wire2api(); - Ok(WasmRunModuleId::get_table(&api_that, api_table, api_index)) + Result::<_, ()>::Ok(WasmRunModuleId::get_table(&api_that, api_table, api_index)) }, ) } @@ -785,7 +790,7 @@ fn wire_fuel_consumed__method__WasmRunModuleId_impl( }, move || { let api_that = that.wire2api(); - Ok(WasmRunModuleId::fuel_consumed(&api_that)) + Result::<_, ()>::Ok(WasmRunModuleId::fuel_consumed(&api_that)) }, ) } @@ -834,7 +839,7 @@ fn wire_get_module_imports__method__CompiledModule_impl( }, move || { let api_that = that.wire2api(); - Ok(CompiledModule::get_module_imports(&api_that)) + Result::<_, ()>::Ok(CompiledModule::get_module_imports(&api_that)) }, ) } @@ -849,7 +854,7 @@ fn wire_get_module_exports__method__CompiledModule_impl( }, move || { let api_that = that.wire2api(); - Ok(CompiledModule::get_module_exports(&api_that)) + Result::<_, ()>::Ok(CompiledModule::get_module_exports(&api_that)) }, ) } @@ -864,7 +869,7 @@ fn wire_ty__method__WasmRunSharedMemory_impl( }, move || { let api_that = that.wire2api(); - Ok(WasmRunSharedMemory::ty(&api_that)) + Result::<_, ()>::Ok(WasmRunSharedMemory::ty(&api_that)) }, ) } @@ -879,7 +884,7 @@ fn wire_size__method__WasmRunSharedMemory_impl( }, move || { let api_that = that.wire2api(); - Ok(WasmRunSharedMemory::size(&api_that)) + Result::<_, ()>::Ok(WasmRunSharedMemory::size(&api_that)) }, ) } @@ -894,7 +899,7 @@ fn wire_data_size__method__WasmRunSharedMemory_impl( }, move || { let api_that = that.wire2api(); - Ok(WasmRunSharedMemory::data_size(&api_that)) + Result::<_, ()>::Ok(WasmRunSharedMemory::data_size(&api_that)) }, ) } @@ -909,7 +914,7 @@ fn wire_data_pointer__method__WasmRunSharedMemory_impl( }, move || { let api_that = that.wire2api(); - Ok(WasmRunSharedMemory::data_pointer(&api_that)) + Result::<_, ()>::Ok(WasmRunSharedMemory::data_pointer(&api_that)) }, ) } @@ -934,7 +939,7 @@ fn wire_atomics__method__WasmRunSharedMemory_impl( port_: MessagePort, that: impl Wire2Api + UnwindSafe, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap( + FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, Atomics, _>( WrapInfo { debug_name: "atomics__method__WasmRunSharedMemory", port: Some(port_), @@ -942,7 +947,7 @@ fn wire_atomics__method__WasmRunSharedMemory_impl( }, move || { let api_that = that.wire2api(); - move |task_callback| Ok(WasmRunSharedMemory::atomics(&api_that)) + move |task_callback| Result::<_, ()>::Ok(WasmRunSharedMemory::atomics(&api_that)) }, ) } @@ -1011,7 +1016,7 @@ fn wire_add__method__Atomics_impl( val: impl Wire2Api + UnwindSafe, order: impl Wire2Api + UnwindSafe, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap( + FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, i64, _>( WrapInfo { debug_name: "add__method__Atomics", port: Some(port_), @@ -1024,7 +1029,7 @@ fn wire_add__method__Atomics_impl( let api_val = val.wire2api(); let api_order = order.wire2api(); move |task_callback| { - Ok(Atomics::add( + Result::<_, ()>::Ok(Atomics::add( &api_that, api_offset, api_kind, api_val, api_order, )) } @@ -1038,7 +1043,7 @@ fn wire_load__method__Atomics_impl( kind: impl Wire2Api + UnwindSafe, order: impl Wire2Api + UnwindSafe, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap( + FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, i64, _>( WrapInfo { debug_name: "load__method__Atomics", port: Some(port_), @@ -1049,7 +1054,9 @@ fn wire_load__method__Atomics_impl( let api_offset = offset.wire2api(); let api_kind = kind.wire2api(); let api_order = order.wire2api(); - move |task_callback| Ok(Atomics::load(&api_that, api_offset, api_kind, api_order)) + move |task_callback| { + Result::<_, ()>::Ok(Atomics::load(&api_that, api_offset, api_kind, api_order)) + } }, ) } @@ -1061,7 +1068,7 @@ fn wire_store__method__Atomics_impl( val: impl Wire2Api + UnwindSafe, order: impl Wire2Api + UnwindSafe, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap( + FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, (), _>( WrapInfo { debug_name: "store__method__Atomics", port: Some(port_), @@ -1074,7 +1081,7 @@ fn wire_store__method__Atomics_impl( let api_val = val.wire2api(); let api_order = order.wire2api(); move |task_callback| { - Ok(Atomics::store( + Result::<_, ()>::Ok(Atomics::store( &api_that, api_offset, api_kind, api_val, api_order, )) } @@ -1089,7 +1096,7 @@ fn wire_swap__method__Atomics_impl( val: impl Wire2Api + UnwindSafe, order: impl Wire2Api + UnwindSafe, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap( + FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, i64, _>( WrapInfo { debug_name: "swap__method__Atomics", port: Some(port_), @@ -1102,7 +1109,7 @@ fn wire_swap__method__Atomics_impl( let api_val = val.wire2api(); let api_order = order.wire2api(); move |task_callback| { - Ok(Atomics::swap( + Result::<_, ()>::Ok(Atomics::swap( &api_that, api_offset, api_kind, api_val, api_order, )) } @@ -1119,7 +1126,7 @@ fn wire_compare_exchange__method__Atomics_impl( success: impl Wire2Api + UnwindSafe, failure: impl Wire2Api + UnwindSafe, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap( + FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, CompareExchangeResult, _>( WrapInfo { debug_name: "compare_exchange__method__Atomics", port: Some(port_), @@ -1134,7 +1141,7 @@ fn wire_compare_exchange__method__Atomics_impl( let api_success = success.wire2api(); let api_failure = failure.wire2api(); move |task_callback| { - Ok(Atomics::compare_exchange( + Result::<_, ()>::Ok(Atomics::compare_exchange( &api_that, api_offset, api_kind, @@ -1155,7 +1162,7 @@ fn wire_sub__method__Atomics_impl( val: impl Wire2Api + UnwindSafe, order: impl Wire2Api + UnwindSafe, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap( + FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, i64, _>( WrapInfo { debug_name: "sub__method__Atomics", port: Some(port_), @@ -1168,7 +1175,7 @@ fn wire_sub__method__Atomics_impl( let api_val = val.wire2api(); let api_order = order.wire2api(); move |task_callback| { - Ok(Atomics::sub( + Result::<_, ()>::Ok(Atomics::sub( &api_that, api_offset, api_kind, api_val, api_order, )) } @@ -1183,7 +1190,7 @@ fn wire_and__method__Atomics_impl( val: impl Wire2Api + UnwindSafe, order: impl Wire2Api + UnwindSafe, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap( + FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, i64, _>( WrapInfo { debug_name: "and__method__Atomics", port: Some(port_), @@ -1196,7 +1203,7 @@ fn wire_and__method__Atomics_impl( let api_val = val.wire2api(); let api_order = order.wire2api(); move |task_callback| { - Ok(Atomics::and( + Result::<_, ()>::Ok(Atomics::and( &api_that, api_offset, api_kind, api_val, api_order, )) } @@ -1211,7 +1218,7 @@ fn wire_or__method__Atomics_impl( val: impl Wire2Api + UnwindSafe, order: impl Wire2Api + UnwindSafe, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap( + FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, i64, _>( WrapInfo { debug_name: "or__method__Atomics", port: Some(port_), @@ -1224,7 +1231,7 @@ fn wire_or__method__Atomics_impl( let api_val = val.wire2api(); let api_order = order.wire2api(); move |task_callback| { - Ok(Atomics::or( + Result::<_, ()>::Ok(Atomics::or( &api_that, api_offset, api_kind, api_val, api_order, )) } @@ -1239,7 +1246,7 @@ fn wire_xor__method__Atomics_impl( val: impl Wire2Api + UnwindSafe, order: impl Wire2Api + UnwindSafe, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap( + FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, i64, _>( WrapInfo { debug_name: "xor__method__Atomics", port: Some(port_), @@ -1252,7 +1259,7 @@ fn wire_xor__method__Atomics_impl( let api_val = val.wire2api(); let api_order = order.wire2api(); move |task_callback| { - Ok(Atomics::xor( + Result::<_, ()>::Ok(Atomics::xor( &api_that, api_offset, api_kind, api_val, api_order, )) } @@ -1387,17 +1394,31 @@ impl Wire2Api for i32 { impl support::IntoDart for Atomics { fn into_dart(self) -> support::DartAbi { - vec![self.0.into_dart()].into_dart() + vec![self.0.into_into_dart().into_dart()].into_dart() } } impl support::IntoDartExceptPrimitive for Atomics {} +impl rust2dart::IntoIntoDart for Atomics { + fn into_into_dart(self) -> Self { + self + } +} impl support::IntoDart for CompareExchangeResult { fn into_dart(self) -> support::DartAbi { - vec![self.success.into_dart(), self.value.into_dart()].into_dart() + vec![ + self.success.into_into_dart().into_dart(), + self.value.into_into_dart().into_dart(), + ] + .into_dart() } } impl support::IntoDartExceptPrimitive for CompareExchangeResult {} +impl rust2dart::IntoIntoDart for CompareExchangeResult { + fn into_into_dart(self) -> Self { + self + } +} impl support::IntoDart for CompiledModule { fn into_dart(self) -> support::DartAbi { @@ -1405,19 +1426,30 @@ impl support::IntoDart for CompiledModule { } } impl support::IntoDartExceptPrimitive for CompiledModule {} +impl rust2dart::IntoIntoDart for CompiledModule { + fn into_into_dart(self) -> Self { + self + } +} impl support::IntoDart for ExternalType { fn into_dart(self) -> support::DartAbi { match self { - Self::Func(field0) => vec![0.into_dart(), field0.into_dart()], - Self::Global(field0) => vec![1.into_dart(), field0.into_dart()], - Self::Table(field0) => vec![2.into_dart(), field0.into_dart()], - Self::Memory(field0) => vec![3.into_dart(), field0.into_dart()], + Self::Func(field0) => vec![0.into_dart(), field0.into_into_dart().into_dart()], + Self::Global(field0) => vec![1.into_dart(), field0.into_into_dart().into_dart()], + Self::Table(field0) => vec![2.into_dart(), field0.into_into_dart().into_dart()], + Self::Memory(field0) => vec![3.into_dart(), field0.into_into_dart().into_dart()], } .into_dart() } } impl support::IntoDartExceptPrimitive for ExternalType {} +impl rust2dart::IntoIntoDart for ExternalType { + fn into_into_dart(self) -> Self { + self + } +} + impl support::IntoDart for ExternalValue { fn into_dart(self) -> support::DartAbi { match self { @@ -1425,96 +1457,167 @@ impl support::IntoDart for ExternalValue { Self::Global(field0) => vec![1.into_dart(), field0.into_dart()], Self::Table(field0) => vec![2.into_dart(), field0.into_dart()], Self::Memory(field0) => vec![3.into_dart(), field0.into_dart()], - Self::SharedMemory(field0) => vec![4.into_dart(), field0.into_dart()], + Self::SharedMemory(field0) => vec![4.into_dart(), field0.into_into_dart().into_dart()], } .into_dart() } } impl support::IntoDartExceptPrimitive for ExternalValue {} +impl rust2dart::IntoIntoDart for ExternalValue { + fn into_into_dart(self) -> Self { + self + } +} impl support::IntoDart for FuncTy { fn into_dart(self) -> support::DartAbi { - vec![self.parameters.into_dart(), self.results.into_dart()].into_dart() + vec![ + self.parameters.into_into_dart().into_dart(), + self.results.into_into_dart().into_dart(), + ] + .into_dart() } } impl support::IntoDartExceptPrimitive for FuncTy {} +impl rust2dart::IntoIntoDart for FuncTy { + fn into_into_dart(self) -> Self { + self + } +} impl support::IntoDart for FunctionCall { fn into_dart(self) -> support::DartAbi { vec![ - self.args.into_dart(), - self.function_id.into_dart(), - self.function_pointer.into_dart(), - self.num_results.into_dart(), - self.worker_index.into_dart(), + self.args.into_into_dart().into_dart(), + self.function_id.into_into_dart().into_dart(), + self.function_pointer.into_into_dart().into_dart(), + self.num_results.into_into_dart().into_dart(), + self.worker_index.into_into_dart().into_dart(), ] .into_dart() } } impl support::IntoDartExceptPrimitive for FunctionCall {} +impl rust2dart::IntoIntoDart for FunctionCall { + fn into_into_dart(self) -> Self { + self + } +} impl support::IntoDart for GlobalTy { fn into_dart(self) -> support::DartAbi { - vec![self.value.into_dart(), self.mutable.into_dart()].into_dart() + vec![ + self.value.into_into_dart().into_dart(), + self.mutable.into_into_dart().into_dart(), + ] + .into_dart() } } impl support::IntoDartExceptPrimitive for GlobalTy {} +impl rust2dart::IntoIntoDart for GlobalTy { + fn into_into_dart(self) -> Self { + self + } +} impl support::IntoDart for MemoryTy { fn into_dart(self) -> support::DartAbi { vec![ - self.shared.into_dart(), - self.minimum.into_dart(), + self.shared.into_into_dart().into_dart(), + self.minimum.into_into_dart().into_dart(), self.maximum.into_dart(), ] .into_dart() } } impl support::IntoDartExceptPrimitive for MemoryTy {} +impl rust2dart::IntoIntoDart for MemoryTy { + fn into_into_dart(self) -> Self { + self + } +} impl support::IntoDart for ModuleExportDesc { fn into_dart(self) -> support::DartAbi { - vec![self.name.into_dart(), self.ty.into_dart()].into_dart() + vec![ + self.name.into_into_dart().into_dart(), + self.ty.into_into_dart().into_dart(), + ] + .into_dart() } } impl support::IntoDartExceptPrimitive for ModuleExportDesc {} +impl rust2dart::IntoIntoDart for ModuleExportDesc { + fn into_into_dart(self) -> Self { + self + } +} impl support::IntoDart for ModuleExportValue { fn into_dart(self) -> support::DartAbi { - vec![self.desc.into_dart(), self.value.into_dart()].into_dart() + vec![ + self.desc.into_into_dart().into_dart(), + self.value.into_into_dart().into_dart(), + ] + .into_dart() } } impl support::IntoDartExceptPrimitive for ModuleExportValue {} +impl rust2dart::IntoIntoDart for ModuleExportValue { + fn into_into_dart(self) -> Self { + self + } +} impl support::IntoDart for ModuleImportDesc { fn into_dart(self) -> support::DartAbi { vec![ - self.module.into_dart(), - self.name.into_dart(), - self.ty.into_dart(), + self.module.into_into_dart().into_dart(), + self.name.into_into_dart().into_dart(), + self.ty.into_into_dart().into_dart(), ] .into_dart() } } impl support::IntoDartExceptPrimitive for ModuleImportDesc {} +impl rust2dart::IntoIntoDart for ModuleImportDesc { + fn into_into_dart(self) -> Self { + self + } +} impl support::IntoDart for ParallelExec { fn into_dart(self) -> support::DartAbi { match self { - Self::Ok(field0) => vec![0.into_dart(), field0.into_dart()], - Self::Err(field0) => vec![1.into_dart(), field0.into_dart()], - Self::Call(field0) => vec![2.into_dart(), field0.into_dart()], + Self::Ok(field0) => vec![0.into_dart(), field0.into_into_dart().into_dart()], + Self::Err(field0) => vec![1.into_dart(), field0.into_into_dart().into_dart()], + Self::Call(field0) => vec![2.into_dart(), field0.into_into_dart().into_dart()], } .into_dart() } } impl support::IntoDartExceptPrimitive for ParallelExec {} +impl rust2dart::IntoIntoDart for ParallelExec { + fn into_into_dart(self) -> Self { + self + } +} + impl support::IntoDart for PointerAndLength { fn into_dart(self) -> support::DartAbi { - vec![self.pointer.into_dart(), self.length.into_dart()].into_dart() + vec![ + self.pointer.into_into_dart().into_dart(), + self.length.into_into_dart().into_dart(), + ] + .into_dart() } } impl support::IntoDartExceptPrimitive for PointerAndLength {} +impl rust2dart::IntoIntoDart for PointerAndLength { + fn into_into_dart(self) -> Self { + self + } +} impl support::IntoDart for SharedMemoryWaitResult { fn into_dart(self) -> support::DartAbi { @@ -1527,17 +1630,28 @@ impl support::IntoDart for SharedMemoryWaitResult { } } impl support::IntoDartExceptPrimitive for SharedMemoryWaitResult {} +impl rust2dart::IntoIntoDart for SharedMemoryWaitResult { + fn into_into_dart(self) -> Self { + self + } +} + impl support::IntoDart for TableTy { fn into_dart(self) -> support::DartAbi { vec![ - self.element.into_dart(), - self.minimum.into_dart(), + self.element.into_into_dart().into_dart(), + self.minimum.into_into_dart().into_dart(), self.maximum.into_dart(), ] .into_dart() } } impl support::IntoDartExceptPrimitive for TableTy {} +impl rust2dart::IntoIntoDart for TableTy { + fn into_into_dart(self) -> Self { + self + } +} impl support::IntoDart for ValueTy { fn into_dart(self) -> support::DartAbi { @@ -1554,48 +1668,69 @@ impl support::IntoDart for ValueTy { } } impl support::IntoDartExceptPrimitive for ValueTy {} +impl rust2dart::IntoIntoDart for ValueTy { + fn into_into_dart(self) -> Self { + self + } +} + impl support::IntoDart for WasmFeatures { fn into_dart(self) -> support::DartAbi { vec![ - self.mutable_global.into_dart(), - self.saturating_float_to_int.into_dart(), - self.sign_extension.into_dart(), - self.reference_types.into_dart(), - self.multi_value.into_dart(), - self.bulk_memory.into_dart(), - self.simd.into_dart(), - self.relaxed_simd.into_dart(), - self.threads.into_dart(), - self.tail_call.into_dart(), - self.floats.into_dart(), - self.multi_memory.into_dart(), - self.exceptions.into_dart(), - self.memory64.into_dart(), - self.extended_const.into_dart(), - self.component_model.into_dart(), - self.memory_control.into_dart(), - self.garbage_collection.into_dart(), - self.type_reflection.into_dart(), + self.mutable_global.into_into_dart().into_dart(), + self.saturating_float_to_int.into_into_dart().into_dart(), + self.sign_extension.into_into_dart().into_dart(), + self.reference_types.into_into_dart().into_dart(), + self.multi_value.into_into_dart().into_dart(), + self.bulk_memory.into_into_dart().into_dart(), + self.simd.into_into_dart().into_dart(), + self.relaxed_simd.into_into_dart().into_dart(), + self.threads.into_into_dart().into_dart(), + self.tail_call.into_into_dart().into_dart(), + self.floats.into_into_dart().into_dart(), + self.multi_memory.into_into_dart().into_dart(), + self.exceptions.into_into_dart().into_dart(), + self.memory64.into_into_dart().into_dart(), + self.extended_const.into_into_dart().into_dart(), + self.component_model.into_into_dart().into_dart(), + self.memory_control.into_into_dart().into_dart(), + self.garbage_collection.into_into_dart().into_dart(), + self.type_reflection.into_into_dart().into_dart(), self.wasi_features.into_dart(), ] .into_dart() } } impl support::IntoDartExceptPrimitive for WasmFeatures {} +impl rust2dart::IntoIntoDart for WasmFeatures { + fn into_into_dart(self) -> Self { + self + } +} impl support::IntoDart for WasmRunInstanceId { fn into_dart(self) -> support::DartAbi { - vec![self.0.into_dart()].into_dart() + vec![self.0.into_into_dart().into_dart()].into_dart() } } impl support::IntoDartExceptPrimitive for WasmRunInstanceId {} +impl rust2dart::IntoIntoDart for WasmRunInstanceId { + fn into_into_dart(self) -> Self { + self + } +} impl support::IntoDart for WasmRunModuleId { fn into_dart(self) -> support::DartAbi { - vec![self.0.into_dart(), self.1.into_dart()].into_dart() + vec![self.0.into_into_dart().into_dart(), self.1.into_dart()].into_dart() } } impl support::IntoDartExceptPrimitive for WasmRunModuleId {} +impl rust2dart::IntoIntoDart for WasmRunModuleId { + fn into_into_dart(self) -> Self { + self + } +} impl support::IntoDart for WasmRunSharedMemory { fn into_dart(self) -> support::DartAbi { @@ -1603,29 +1738,39 @@ impl support::IntoDart for WasmRunSharedMemory { } } impl support::IntoDartExceptPrimitive for WasmRunSharedMemory {} +impl rust2dart::IntoIntoDart for WasmRunSharedMemory { + fn into_into_dart(self) -> Self { + self + } +} impl support::IntoDart for WasmRuntimeFeatures { fn into_dart(self) -> support::DartAbi { vec![ - self.name.into_dart(), - self.version.into_dart(), - self.is_browser.into_dart(), - self.supported_features.into_dart(), - self.default_features.into_dart(), + self.name.into_into_dart().into_dart(), + self.version.into_into_dart().into_dart(), + self.is_browser.into_into_dart().into_dart(), + self.supported_features.into_into_dart().into_dart(), + self.default_features.into_into_dart().into_dart(), ] .into_dart() } } impl support::IntoDartExceptPrimitive for WasmRuntimeFeatures {} +impl rust2dart::IntoIntoDart for WasmRuntimeFeatures { + fn into_into_dart(self) -> Self { + self + } +} impl support::IntoDart for WasmVal { fn into_dart(self) -> support::DartAbi { match self { - Self::i32(field0) => vec![0.into_dart(), field0.into_dart()], - Self::i64(field0) => vec![1.into_dart(), field0.into_dart()], - Self::f32(field0) => vec![2.into_dart(), field0.into_dart()], - Self::f64(field0) => vec![3.into_dart(), field0.into_dart()], - Self::v128(field0) => vec![4.into_dart(), field0.into_dart()], + Self::i32(field0) => vec![0.into_dart(), field0.into_into_dart().into_dart()], + Self::i64(field0) => vec![1.into_dart(), field0.into_into_dart().into_dart()], + Self::f32(field0) => vec![2.into_dart(), field0.into_into_dart().into_dart()], + Self::f64(field0) => vec![3.into_dart(), field0.into_into_dart().into_dart()], + Self::v128(field0) => vec![4.into_dart(), field0.into_into_dart().into_dart()], Self::funcRef(field0) => vec![5.into_dart(), field0.into_dart()], Self::externRef(field0) => vec![6.into_dart(), field0.into_dart()], } @@ -1633,22 +1778,33 @@ impl support::IntoDart for WasmVal { } } impl support::IntoDartExceptPrimitive for WasmVal {} +impl rust2dart::IntoIntoDart for WasmVal { + fn into_into_dart(self) -> Self { + self + } +} + impl support::IntoDart for WasmWasiFeatures { fn into_dart(self) -> support::DartAbi { vec![ - self.io.into_dart(), - self.filesystem.into_dart(), - self.clocks.into_dart(), - self.random.into_dart(), - self.poll.into_dart(), - self.machine_learning.into_dart(), - self.crypto.into_dart(), - self.threads.into_dart(), + self.io.into_into_dart().into_dart(), + self.filesystem.into_into_dart().into_dart(), + self.clocks.into_into_dart().into_dart(), + self.random.into_into_dart().into_dart(), + self.poll.into_into_dart().into_dart(), + self.machine_learning.into_into_dart().into_dart(), + self.crypto.into_into_dart().into_dart(), + self.threads.into_into_dart().into_dart(), ] .into_dart() } } impl support::IntoDartExceptPrimitive for WasmWasiFeatures {} +impl rust2dart::IntoIntoDart for WasmWasiFeatures { + fn into_into_dart(self) -> Self { + self + } +} // Section: executor @@ -4591,6 +4747,12 @@ mod io { } } + impl Default for wire_ExternalValue { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_ExternalValue { fn new_with_null_ptr() -> Self { Self { @@ -4856,6 +5018,12 @@ mod io { } } + impl Default for wire_WasmVal { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_WasmVal { fn new_with_null_ptr() -> Self { Self { diff --git a/packages/wasm_run/native/src/types.rs b/packages/wasm_run/native/src/types.rs index 29368434..493b8312 100644 --- a/packages/wasm_run/native/src/types.rs +++ b/packages/wasm_run/native/src/types.rs @@ -1,6 +1,5 @@ use std::fmt::Display; -use crate::bridge_generated::{wire_ExternalValue, NewWithNullPtr}; use anyhow::Result; use flutter_rust_bridge::RustOpaque; @@ -426,12 +425,6 @@ pub enum ExternalValue { SharedMemory(crate::api::WasmRunSharedMemory), } -impl Default for wire_ExternalValue { - fn default() -> Self { - wire_ExternalValue::new_with_null_ptr() - } -} - #[cfg(not(feature = "wasmtime"))] impl From for ExternalValue { fn from(extern_: Extern) -> Self { diff --git a/packages/wasm_run/pubspec.yaml b/packages/wasm_run/pubspec.yaml index 617c2b4e..1dad8278 100644 --- a/packages/wasm_run/pubspec.yaml +++ b/packages/wasm_run/pubspec.yaml @@ -11,7 +11,7 @@ topics: - ffi environment: - sdk: ">=2.19.0 <4.0.0" + sdk: ">=3.1.0 <4.0.0" flutter: assets: @@ -19,8 +19,8 @@ flutter: dependencies: meta: ^1.8.0 - ffi: ^2.0.1 - flutter_rust_bridge: ^1.72.2 + ffi: ^2.1.0 + flutter_rust_bridge: ^1.82.1 freezed_annotation: ^2.2.0 wasm_interop: ^2.0.1 logging: ^1.1.0 @@ -28,10 +28,8 @@ dependencies: http: ^0.13.5 dev_dependencies: - ffigen: ^7.2.10 + ffigen: ^9.0.1 test: ^1.21.0 build_runner: ^2.3.3 freezed: ^2.3.2 very_good_analysis: ^5.0.0 - wasm_run_example: - path: example diff --git a/packages/wasm_run/test/main_test.dart b/packages/wasm_run/test/main_test.dart deleted file mode 100644 index 2fab7b14..00000000 --- a/packages/wasm_run/test/main_test.dart +++ /dev/null @@ -1,5 +0,0 @@ -import 'package:wasm_run_example/main.dart'; - -void main() { - testAll(); -} diff --git a/packages/wasm_run/test/main_test.html b/packages/wasm_run/test/main_test.html deleted file mode 100644 index 7410bb85..00000000 --- a/packages/wasm_run/test/main_test.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - Main Test - - - - - - - - - \ No newline at end of file diff --git a/packages/wasm_run_flutter/example/assets/rust_threads_example.wasm b/packages/wasm_run_flutter/example/assets/rust_threads_example.wasm index b88c9785..d694e347 100755 Binary files a/packages/wasm_run_flutter/example/assets/rust_threads_example.wasm and b/packages/wasm_run_flutter/example/assets/rust_threads_example.wasm differ diff --git a/packages/wasm_run_flutter/example/assets/rust_wasi_example.wasm b/packages/wasm_run_flutter/example/assets/rust_wasi_example.wasm index b703eeeb..c1d072e7 100644 Binary files a/packages/wasm_run_flutter/example/assets/rust_wasi_example.wasm and b/packages/wasm_run_flutter/example/assets/rust_wasi_example.wasm differ diff --git a/packages/wasm_run_flutter/example/assets/rust_wit_component_example.wasm b/packages/wasm_run_flutter/example/assets/rust_wit_component_example.wasm new file mode 100755 index 00000000..eb4c0fa7 Binary files /dev/null and b/packages/wasm_run_flutter/example/assets/rust_wit_component_example.wasm differ diff --git a/scripts/build-android.sh b/scripts/build-android.sh old mode 100644 new mode 100755 diff --git a/scripts/build-apple.sh b/scripts/build-apple.sh old mode 100644 new mode 100755 diff --git a/scripts/build-other.sh b/scripts/build-other.sh old mode 100644 new mode 100755 diff --git a/scripts/build-rust-wasm-examples.sh b/scripts/build-rust-wasm-examples.sh old mode 100644 new mode 100755 diff --git a/scripts/config_api.sh b/scripts/config_api.sh old mode 100644 new mode 100755 diff --git a/scripts/version.sh b/scripts/version.sh old mode 100644 new mode 100755