lazer pointer wao

fix: install rustls crypto provider

ptr.pet 4f932262 6c582687

verified
Changed files
+6
src
+2
Cargo.lock
··· 89 "softbuffer", 90 "tiny-skia", 91 "tokio", 92 "tokio-tungstenite-wasm", 93 "tokio-websockets", 94 "wasm-bindgen-futures", ··· 1638 checksum = "c0ebcbd2f03de0fc1122ad9bb24b127a5a6cd51d72604a3f3c50ac459762b6cc" 1639 dependencies = [ 1640 "once_cell", 1641 "rustls-pki-types", 1642 "rustls-webpki", 1643 "subtle",
··· 89 "softbuffer", 90 "tiny-skia", 91 "tokio", 92 + "tokio-rustls", 93 "tokio-tungstenite-wasm", 94 "tokio-websockets", 95 "wasm-bindgen-futures", ··· 1639 checksum = "c0ebcbd2f03de0fc1122ad9bb24b127a5a6cd51d72604a3f3c50ac459762b6cc" 1640 dependencies = [ 1641 "once_cell", 1642 + "ring", 1643 "rustls-pki-types", 1644 "rustls-webpki", 1645 "subtle",
+2
Cargo.toml
··· 15 "dep:tokio-websockets", 16 ] 17 client = [ 18 "dep:tokio-tungstenite-wasm", 19 ] 20 ··· 38 wasm-bindgen-futures = "0.4" 39 40 [target.'cfg(not(target_arch = "wasm32"))'.dependencies] 41 enigo = { optional = true, version = "0.5.0", features = ["wayland"] } 42 tokio = { version = "1", default-features = false, features = ["rt", "rt-multi-thread", "sync"] } 43 ahash = { version = "0.8", default-features = false, features = ["runtime-rng"] }
··· 15 "dep:tokio-websockets", 16 ] 17 client = [ 18 + "dep:tokio-rustls", 19 "dep:tokio-tungstenite-wasm", 20 ] 21 ··· 39 wasm-bindgen-futures = "0.4" 40 41 [target.'cfg(not(target_arch = "wasm32"))'.dependencies] 42 + tokio-rustls = { optional = true, version = "0.26", default-features = false, features = ["ring"] } 43 enigo = { optional = true, version = "0.5.0", features = ["wayland"] } 44 tokio = { version = "1", default-features = false, features = ["rt", "rt-multi-thread", "sync"] } 45 ahash = { version = "0.8", default-features = false, features = ["runtime-rng"] }
+2
src/main.rs
··· 543 }); 544 #[cfg(feature = "client")] 545 { 546 let client_id = app.client_id; 547 let fut = async move { 548 ws::client::connect(env!("SERVER_URL"), window, _rx, _tx, client_id)
··· 543 }); 544 #[cfg(feature = "client")] 545 { 546 + #[cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))] 547 + let _ = tokio_rustls::rustls::crypto::ring::default_provider().install_default(); 548 let client_id = app.client_id; 549 let fut = async move { 550 ws::client::connect(env!("SERVER_URL"), window, _rx, _tx, client_id)