From 2e970785d4c7ce8b8acd128f998df5aaf9d21f12 Mon Sep 17 00:00:00 2001 From: Philip Date: Sat, 1 Jan 2022 12:33:23 +0100 Subject: [PATCH] Conditionally include winreg --- Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 7a1f210..82261bb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,6 @@ flate2 = "^1.0.22" toml = { version = "^0.5.8", optional = true } futures = { version = "^0.3.17" } dashmap = { version = "^4.0.2", features = ["serde"] } -winreg = "0.10.1" [build-dependencies] fl2rust = { version = "0.4", optional = true } @@ -29,3 +28,6 @@ fl2rust = { version = "0.4", optional = true } [features] # default = ["ui"] ui = ["fltk", "fl2rust", "toml"] + +[target.'cfg(windows)'.dependencies] +winreg = "0.10.1" \ No newline at end of file