Skip to content

Commit

Permalink
deploy: ebb6a27
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Dec 5, 2024
1 parent 30244af commit 67d5857
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 66 deletions.
2 changes: 1 addition & 1 deletion demo/flutter_bootstrap.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

127 changes: 62 additions & 65 deletions demo/pkg/rust_lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,11 @@ function makeMutClosure(arg0, arg1, dtor, f) {
return real;
}
function __wbg_adapter_34(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3a208c923ff0f0ad(arg0, arg1, addHeapObject(arg2));
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1a6b4db89de053ab(arg0, arg1, addHeapObject(arg2));
}

function __wbg_adapter_39(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h016d9ef8bb5decfc(arg0, arg1, addHeapObject(arg2));
function __wbg_adapter_37(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h021a567054566ee8(arg0, arg1, addHeapObject(arg2));
}

/**
Expand Down Expand Up @@ -272,47 +272,13 @@ __exports.frb_dart_fn_deliver_output = function(call_id, ptr_, rust_vec_len_, da
wasm.frb_dart_fn_deliver_output(call_id, addHeapObject(ptr_), rust_vec_len_, data_len_);
};

/**
*/
__exports.wasm_start_callback = function() {
wasm.wasm_start_callback();
};

/**
* @param {number} ptr
*/
__exports.frb_dart_opaque_drop_thread_box_persistent_handle = function(ptr) {
wasm.frb_dart_opaque_drop_thread_box_persistent_handle(ptr);
};

/**
* @param {number} ptr
* @returns {any}
*/
__exports.frb_dart_opaque_rust2dart_decode = function(ptr) {
const ret = wasm.frb_dart_opaque_rust2dart_decode(ptr);
return takeObject(ret);
};

function handleError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
wasm.__wbindgen_exn_store(addHeapObject(e));
}
}
/**
* # Safety
*
* This should never be called manually.
* @param {any} handle
* @param {any} dart_handler_port
* @returns {number}
*/
__exports.frb_dart_opaque_dart2rust_encode = function(handle, dart_handler_port) {
const ret = wasm.frb_dart_opaque_dart2rust_encode(addHeapObject(handle), addHeapObject(dart_handler_port));
return ret >>> 0;
};

let cachedUint32Memory0 = null;

Expand Down Expand Up @@ -357,8 +323,43 @@ __exports.receive_transfer_closure = function(payload, transfer) {
}
};

function __wbg_adapter_124(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h0524dc5c376b8af3(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
/**
* # Safety
*
* This should never be called manually.
* @param {any} handle
* @param {any} dart_handler_port
* @returns {number}
*/
__exports.frb_dart_opaque_dart2rust_encode = function(handle, dart_handler_port) {
const ret = wasm.frb_dart_opaque_dart2rust_encode(addHeapObject(handle), addHeapObject(dart_handler_port));
return ret >>> 0;
};

/**
* @param {number} ptr
* @returns {any}
*/
__exports.frb_dart_opaque_rust2dart_decode = function(ptr) {
const ret = wasm.frb_dart_opaque_rust2dart_decode(ptr);
return takeObject(ret);
};

/**
* @param {number} ptr
*/
__exports.frb_dart_opaque_drop_thread_box_persistent_handle = function(ptr) {
wasm.frb_dart_opaque_drop_thread_box_persistent_handle(ptr);
};

/**
*/
__exports.wasm_start_callback = function() {
wasm.wasm_start_callback();
};

function __wbg_adapter_122(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h301b839670b60610(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
}

const WorkerPoolFinalization = (typeof FinalizationRegistry === 'undefined')
Expand Down Expand Up @@ -486,8 +487,9 @@ function __wbg_get_imports() {
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbg_error_58aba9982dff79d0 = function(arg0, arg1) {
console.error(getStringFromWasm0(arg0, arg1));
imports.wbg.__wbindgen_is_falsy = function(arg0) {
const ret = !getObject(arg0);
return ret;
};
imports.wbg.__wbindgen_number_new = function(arg0) {
const ret = arg0;
Expand All @@ -496,8 +498,18 @@ function __wbg_get_imports() {
imports.wbg.__wbg_postMessage_d376ad9fc0cf7653 = function() { return handleError(function (arg0, arg1) {
getObject(arg0).postMessage(getObject(arg1));
}, arguments) };
imports.wbg.__wbindgen_is_falsy = function(arg0) {
const ret = !getObject(arg0);
imports.wbg.__wbg_error_58aba9982dff79d0 = function(arg0, arg1) {
console.error(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
queueMicrotask(getObject(arg0));
};
imports.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
const ret = getObject(arg0).queueMicrotask;
return addHeapObject(ret);
};
imports.wbg.__wbindgen_is_function = function(arg0) {
const ret = typeof(getObject(arg0)) === 'function';
return ret;
};
imports.wbg.__wbg_waitAsync_5d743fc9058ba01a = function() {
Expand All @@ -520,9 +532,6 @@ function __wbg_get_imports() {
const ret = getObject(arg0).value;
return addHeapObject(ret);
};
imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
queueMicrotask(getObject(arg0));
};
imports.wbg.__wbindgen_link_fc1eedd35dc7e0a6 = function(arg0) {
const ret = "data:application/javascript," + encodeURIComponent(`onmessage = function (ev) {
let [ia, index, value] = ev.data;
Expand All @@ -536,14 +545,6 @@ function __wbg_get_imports() {
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
const ret = getObject(arg0).queueMicrotask;
return addHeapObject(ret);
};
imports.wbg.__wbindgen_is_function = function(arg0) {
const ret = typeof(getObject(arg0)) === 'function';
return ret;
};
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
const ret = new Error();
return addHeapObject(ret);
Expand Down Expand Up @@ -711,7 +712,7 @@ function __wbg_get_imports() {
const a = state0.a;
state0.a = 0;
try {
return __wbg_adapter_124(a, state0.b, arg0, arg1);
return __wbg_adapter_122(a, state0.b, arg0, arg1);
} finally {
state0.a = a;
}
Expand Down Expand Up @@ -778,20 +779,16 @@ function __wbg_get_imports() {
const ret = wasm.memory;
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper368 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 142, __wbg_adapter_34);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper369 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 142, __wbg_adapter_34);
imports.wbg.__wbindgen_closure_wrapper366 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 140, __wbg_adapter_34);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper455 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 179, __wbg_adapter_39);
imports.wbg.__wbindgen_closure_wrapper437 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 170, __wbg_adapter_37);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper456 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 179, __wbg_adapter_39);
imports.wbg.__wbindgen_closure_wrapper439 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 170, __wbg_adapter_37);
return addHeapObject(ret);
};

Expand Down
Binary file modified demo/pkg/rust_lib_bg.wasm
Binary file not shown.

0 comments on commit 67d5857

Please sign in to comment.