mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-12 08:47:31 +00:00
15 lines
274 B
Rust
15 lines
274 B
Rust
extern crate wasm_bindgen;
|
|
|
|
use wasm_bindgen::prelude::*;
|
|
use std::thread::spawn;
|
|
|
|
#[wasm_bindgen]
|
|
pub fn doit() {
|
|
// let child = spawn(move || -> u32 {
|
|
// 5
|
|
// });
|
|
// let result = child.join().unwrap();
|
|
let result = spawn();
|
|
println!("Result: {}", result);
|
|
}
|