pick up wasm dep

This commit is contained in:
Quaternions 2025-01-03 17:46:14 -08:00
parent da2c246bec
commit 61a86a78f4
3 changed files with 5 additions and 0 deletions

1
Cargo.lock generated

@ -3704,6 +3704,7 @@ dependencies = [
"strafesnet_session",
"strafesnet_settings",
"strafesnet_snf",
"wasm-bindgen-futures",
"wgpu",
"winit",
]

@ -28,5 +28,6 @@ strafesnet_rbx_loader = { path = "../lib/rbx_loader", registry = "strafesnet", o
strafesnet_session = { path = "../engine/session", registry = "strafesnet" }
strafesnet_settings = { path = "../engine/settings", registry = "strafesnet" }
strafesnet_snf = { path = "../lib/snf", registry = "strafesnet", optional = true }
wasm-bindgen-futures = "0.4.49"
wgpu = "24.0.0"
winit = "0.30.7"

@ -9,5 +9,8 @@ mod graphics_worker;
const TITLE:&'static str=concat!("Strafe Client v",env!("CARGO_PKG_VERSION"));
fn main(){
#[cfg(target_arch="wasm32")]
wasm_bindgen_futures::spawn_local(setup::setup_and_start(TITLE));
#[cfg(not(target_arch="wasm32"))]
pollster::block_on(setup::setup_and_start(TITLE));
}