From 9c7d4ef1f70c4127c26d1020b591ce71abe2a40b Mon Sep 17 00:00:00 2001 From: 21pages Date: Thu, 27 Jun 2024 12:11:08 +0800 Subject: [PATCH] not use nwg default features (#8492) Signed-off-by: 21pages --- Cargo.lock | 49 +--------------------------------------- libs/portable/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 49 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a3db6573b..6deac2f9b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2139,7 +2139,7 @@ version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ad46a0e6c9bc688823a742aa969b5c08fdc56c2a436ee00d5c6fbcb5982c55c4" dependencies = [ - "libm 0.2.8", + "libm", ] [[package]] @@ -3493,12 +3493,6 @@ dependencies = [ "windows-sys 0.48.0", ] -[[package]] -name = "libm" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fc7aa29613bd6a620df431842069224d8bc9011086b1db4c0e0cd47fa03ec9a" - [[package]] name = "libm" version = "0.2.8" @@ -3827,10 +3821,6 @@ checksum = "4f7003a669f68deb6b7c57d74fff4f8e533c44a3f0b297492440ef4ff5a28454" dependencies = [ "bitflags 1.3.2", "lazy_static", - "newline-converter", - "plotters", - "plotters-backend", - "stretch", "winapi 0.3.9", "winapi-build", ] @@ -3913,15 +3903,6 @@ dependencies = [ "log", ] -[[package]] -name = "newline-converter" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f71d09d5c87634207f894c6b31b6a2b2c64ea3bdcf71bd5599fdbbe1600c00f" -dependencies = [ - "unicode-segmentation", -] - [[package]] name = "nix" version = "0.23.2" @@ -4605,24 +4586,6 @@ dependencies = [ "time 0.3.30", ] -[[package]] -name = "plotters" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a15b6eccb8484002195a3e44fe65a4ce8e93a625797a063735536fd59cb01cf3" -dependencies = [ - "num-traits 0.2.17", - "plotters-backend", - "wasm-bindgen", - "web-sys", -] - -[[package]] -name = "plotters-backend" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "414cec62c6634ae900ea1c56128dfe87cf63e7caece0852ec76aba307cebadb7" - [[package]] name = "png" version = "0.17.10" @@ -5998,16 +5961,6 @@ version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fe895eb47f22e2ddd4dabc02bce419d2e643c8e3b585c78158b349195bc24d82" -[[package]] -name = "stretch" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b0dc6d20ce137f302edf90f9cd3d278866fd7fb139efca6f246161222ad6d87" -dependencies = [ - "lazy_static", - "libm 0.1.4", -] - [[package]] name = "strsim" version = "0.8.0" diff --git a/libs/portable/Cargo.toml b/libs/portable/Cargo.toml index d0305b6b0..82397421b 100644 --- a/libs/portable/Cargo.toml +++ b/libs/portable/Cargo.toml @@ -15,7 +15,7 @@ md5 = "0.7" winapi = { version = "0.3", features = ["winbase"] } [target.'cfg(target_os = "windows")'.dependencies] -native-windows-gui = "1.0" +native-windows-gui = {version = "1.0", default-features = false, features = ["animation-timer", "image-decoder"]} [package.metadata.winres] LegalCopyright = "Copyright © 2024 Purslane Ltd. All rights reserved."