mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-18 03:29:17 +00:00
Remove obsolete Worker bindings
This commit is contained in:
Binary file not shown.
@@ -8,13 +8,8 @@ use oxipng::AlphaOptim;
|
|||||||
|
|
||||||
#[wasm_bindgen]
|
#[wasm_bindgen]
|
||||||
extern "C" {
|
extern "C" {
|
||||||
type Worker;
|
|
||||||
|
|
||||||
#[wasm_bindgen(js_namespace = Array, js_name = of)]
|
#[wasm_bindgen(js_namespace = Array, js_name = of)]
|
||||||
fn array_of_2(a: JsValue, b: JsValue) -> JsValue;
|
fn array_of_2(a: JsValue, b: JsValue) -> JsValue;
|
||||||
|
|
||||||
#[wasm_bindgen(method, js_name = postMessage)]
|
|
||||||
fn post_message(worker: &Worker, msg: JsValue);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static TASKS: OnceCell<Injector<rayon::ThreadBuilder>> = OnceCell::new();
|
static TASKS: OnceCell<Injector<rayon::ThreadBuilder>> = OnceCell::new();
|
||||||
|
|||||||
Reference in New Issue
Block a user