You should compile a worker which have to be spawned in a separate thread:
cargo web build --bin native_worker --release --features std_web