lazer pointer wao

fix: install rustls crypto provider

ptr.pet 4f932262 6c582687

verified
Changed files
+6
src
+2
Cargo.lock
···
"softbuffer",
"tiny-skia",
"tokio",
+
"tokio-rustls",
"tokio-tungstenite-wasm",
"tokio-websockets",
"wasm-bindgen-futures",
···
checksum = "c0ebcbd2f03de0fc1122ad9bb24b127a5a6cd51d72604a3f3c50ac459762b6cc"
dependencies = [
"once_cell",
+
"ring",
"rustls-pki-types",
"rustls-webpki",
"subtle",
+2
Cargo.toml
···
"dep:tokio-websockets",
]
client = [
+
"dep:tokio-rustls",
"dep:tokio-tungstenite-wasm",
]
···
wasm-bindgen-futures = "0.4"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
+
tokio-rustls = { optional = true, version = "0.26", default-features = false, features = ["ring"] }
enigo = { optional = true, version = "0.5.0", features = ["wayland"] }
tokio = { version = "1", default-features = false, features = ["rt", "rt-multi-thread", "sync"] }
ahash = { version = "0.8", default-features = false, features = ["runtime-rng"] }
+2
src/main.rs
···
});
#[cfg(feature = "client")]
{
+
#[cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))]
+
let _ = tokio_rustls::rustls::crypto::ring::default_provider().install_default();
let client_id = app.client_id;
let fut = async move {
ws::client::connect(env!("SERVER_URL"), window, _rx, _tx, client_id)