From 445eba18969505ed8d078ac2e87b2d976a78b2ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A3=B9=E9=9B=B6?= Date: Wed, 17 Apr 2024 12:42:34 +0800 Subject: [PATCH] fix cargo --- pubspec.yaml | 2 +- rust/Cargo.toml | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index 938297a..60e0b5f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: all_in_one description: "A new Flutter project." publish_to: 'none' # Remove this line if you wish to publish to pub.dev -version: 0.0.3+4 +version: 0.0.3+5 environment: sdk: '>=3.3.0 <4.0.0' diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 0c178b0..f662dbd 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -14,7 +14,7 @@ once_cell = "1.19.0" rust_simple_notify_lib = { path = "../rust_simple_notify_lib" } sysinfo = "0.30.8" systemstat = "0.2.3" -winreg = "0.52.0" + [target.'cfg(windows)'.dependencies] winapi = { version = "0.3", features = [ @@ -23,7 +23,6 @@ winapi = { version = "0.3", features = [ "processthreadsapi", ] } systemicons = { git = "https://github.com/guchengxi1994/systemicons", branch = "master" } +winreg = "0.52.0" + -[features] -[target.'cfg(windows)'.features] -windows-only = ["winreg", "winapi"]