Skip to content

Commit

Permalink
deploy: 990bc14
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Jan 16, 2025
1 parent 1a32f00 commit ffc2c60
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 54 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.

105 changes: 52 additions & 53 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__h533cb7f62c7762a4(arg0, arg1, addHeapObject(arg2));
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hde5e3fd25a988f7e(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__h39b92d74b4ebf135(arg0, arg1, addHeapObject(arg2));
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1cc287f4d7e392e7(arg0, arg1, addHeapObject(arg2));
}

/**
Expand Down Expand Up @@ -272,13 +272,20 @@ __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_);
};

function handleError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
wasm.__wbindgen_exn_store(addHeapObject(e));
}
}
/**
*/
__exports.wasm_start_callback = function() {
wasm.wasm_start_callback();
};

/**
* @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);
};

let cachedUint32Memory0 = null;

Expand Down Expand Up @@ -323,13 +330,6 @@ __exports.receive_transfer_closure = function(payload, transfer) {
}
};

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

/**
* # Safety
*
Expand All @@ -343,23 +343,22 @@ __exports.frb_dart_opaque_dart2rust_encode = function(handle, dart_handler_port)
return ret >>> 0;
};

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

/**
* @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);
__exports.frb_dart_opaque_drop_thread_box_persistent_handle = function(ptr) {
wasm.frb_dart_opaque_drop_thread_box_persistent_handle(ptr);
};

function handleError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
wasm.__wbindgen_exn_store(addHeapObject(e));
}
}
function __wbg_adapter_122(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h43d503b3778586be(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
wasm.wasm_bindgen__convert__closures__invoke2_mut__h15616934dcdbc57b(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
}

const WorkerPoolFinalization = (typeof FinalizationRegistry === 'undefined')
Expand Down Expand Up @@ -487,20 +486,20 @@ function __wbg_get_imports() {
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbindgen_number_new = function(arg0) {
const ret = arg0;
return addHeapObject(ret);
};
imports.wbg.__wbg_postMessage_f916d5274015b01a = function() { return handleError(function (arg0, arg1) {
getObject(arg0).postMessage(getObject(arg1));
}, arguments) };
imports.wbg.__wbg_error_6f59e13aeb612ec7 = 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;
return addHeapObject(ret);
};
imports.wbg.__wbg_postMessage_f916d5274015b01a = function() { return handleError(function (arg0, arg1) {
getObject(arg0).postMessage(getObject(arg1));
}, arguments) };
imports.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
const ret = getObject(arg0).queueMicrotask;
return addHeapObject(ret);
Expand All @@ -509,19 +508,6 @@ function __wbg_get_imports() {
const ret = typeof(getObject(arg0)) === 'function';
return ret;
};
imports.wbg.__wbindgen_link_fc1eedd35dc7e0a6 = function(arg0) {
const ret = "data:application/javascript," + encodeURIComponent(`onmessage = function (ev) {
let [ia, index, value] = ev.data;
ia = new Int32Array(ia.buffer);
let result = Atomics.wait(ia, index, value);
postMessage(result);
};
`);
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
queueMicrotask(getObject(arg0));
};
Expand All @@ -545,6 +531,19 @@ function __wbg_get_imports() {
const ret = getObject(arg0).value;
return addHeapObject(ret);
};
imports.wbg.__wbindgen_link_fc1eedd35dc7e0a6 = function(arg0) {
const ret = "data:application/javascript," + encodeURIComponent(`onmessage = function (ev) {
let [ia, index, value] = ev.data;
ia = new Int32Array(ia.buffer);
let result = Atomics.wait(ia, index, value);
postMessage(result);
};
`);
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
const ret = new Error();
return addHeapObject(ret);
Expand Down Expand Up @@ -779,16 +778,16 @@ function __wbg_get_imports() {
const ret = wasm.memory;
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper360 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 139, __wbg_adapter_34);
imports.wbg.__wbindgen_closure_wrapper351 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 140, __wbg_adapter_34);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper431 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 167, __wbg_adapter_37);
imports.wbg.__wbindgen_closure_wrapper445 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 177, __wbg_adapter_37);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper433 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 167, __wbg_adapter_37);
imports.wbg.__wbindgen_closure_wrapper446 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 177, __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 ffc2c60

Please sign in to comment.