From 7d8cd8d952a2434c52871fecdcb51d9a17da8e0e Mon Sep 17 00:00:00 2001 From: genusistimelord Date: Wed, 27 Nov 2024 08:41:17 -0500 Subject: [PATCH] Push a few more wasm fixes --- Cargo.lock | 55 +++--------------------------------------------------- Cargo.toml | 4 +--- 2 files changed, 4 insertions(+), 55 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b7579b4..ce894c9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -776,15 +776,6 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7046468a81e6a002061c01e6a7c83139daf91b11c30e66795b13217c2d885c8b" -[[package]] -name = "deranged" -version = "0.3.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4" -dependencies = [ - "powerfmt", -] - [[package]] name = "detect-desktop-environment" version = "0.2.0" @@ -1214,8 +1205,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if", + "js-sys", "libc", "wasi", + "wasm-bindgen", ] [[package]] @@ -1429,6 +1422,7 @@ version = "0.11.0" dependencies = [ "cfg-if", "chrono", + "getrandom", "iced", "iced_aw", "iced_fonts", @@ -1436,7 +1430,6 @@ dependencies = [ "num-format", "num-traits", "rand", - "time", "web-time", ] @@ -1994,12 +1987,6 @@ dependencies = [ "memoffset", ] -[[package]] -name = "num-conv" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" - [[package]] name = "num-format" version = "0.4.4" @@ -2051,15 +2038,6 @@ dependencies = [ "syn 2.0.77", ] -[[package]] -name = "num_threads" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c7398b9c8b70908f6371f47ed36737907c87c52af34c268fed0bf0ceb92ead9" -dependencies = [ - "libc", -] - [[package]] name = "objc" version = "0.2.7" @@ -2535,12 +2513,6 @@ dependencies = [ "windows-sys 0.59.0", ] -[[package]] -name = "powerfmt" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" - [[package]] name = "ppv-lite86" version = "0.2.20" @@ -3109,27 +3081,6 @@ dependencies = [ "syn 2.0.77", ] -[[package]] -name = "time" -version = "0.3.36" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885" -dependencies = [ - "deranged", - "libc", - "num-conv", - "num_threads", - "powerfmt", - "serde", - "time-core", -] - -[[package]] -name = "time-core" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" - [[package]] name = "tiny-skia" version = "0.11.4" diff --git a/Cargo.toml b/Cargo.toml index a27e30d..d3a322d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,6 @@ badge = [] card = [] date_picker = ["chrono"] color_picker = ["iced/canvas"] -cupertino = ["time", "iced/canvas"] grid = ["itertools"] glow = [] # TODO tab_bar = [] @@ -65,9 +64,8 @@ chrono = { version = "0.4.38", optional = true, features = ["wasmbind"]} itertools = { version = "0.13.0", optional = true } num-format = { version = "0.4.4", optional = true } num-traits = { version = "0.2.19", optional = true } -time = { version = "0.3.36", features = ["local-offset"], optional = true } iced_fonts = "0.1.1" - +getrandom = { version = "0.2", features = ["js"] } web-time = "1.1.0" [dependencies.iced]