From a1f813631bc3a8d523aa8eafa89d342337455e7b Mon Sep 17 00:00:00 2001 From: Enrico Lumetti Date: Tue, 2 Mar 2021 00:13:03 +0100 Subject: [PATCH] Make gtk dependencies optional --- Cargo.lock | 6 +++--- Cargo.toml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7763b39..0adc0fd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -338,7 +338,7 @@ checksum = "212d0f5754cb6769937f4501cc0e67f4f4483c8d2c3e1e922ee9edbe4ab4c7c0" [[package]] name = "druid" version = "0.7.0" -source = "git+https://github.com/doppioandante/druid?branch=v0.7.0_stiletto#f0a6fd3f6bece1b1d10e261ce57673d7f6f1969a" +source = "git+https://github.com/doppioandante/druid?branch=v0.7.0_stiletto#2cbb14456fb1813e673d2151626630d2c4db68bf" dependencies = [ "console_log", "druid-derive", @@ -361,7 +361,7 @@ dependencies = [ [[package]] name = "druid-derive" version = "0.4.0" -source = "git+https://github.com/doppioandante/druid?branch=v0.7.0_stiletto#f0a6fd3f6bece1b1d10e261ce57673d7f6f1969a" +source = "git+https://github.com/doppioandante/druid?branch=v0.7.0_stiletto#2cbb14456fb1813e673d2151626630d2c4db68bf" dependencies = [ "proc-macro2", "quote", @@ -371,7 +371,7 @@ dependencies = [ [[package]] name = "druid-shell" version = "0.7.0" -source = "git+https://github.com/doppioandante/druid?branch=v0.7.0_stiletto#f0a6fd3f6bece1b1d10e261ce57673d7f6f1969a" +source = "git+https://github.com/doppioandante/druid?branch=v0.7.0_stiletto#2cbb14456fb1813e673d2151626630d2c4db68bf" dependencies = [ "anyhow", "bitflags", diff --git a/Cargo.toml b/Cargo.toml index b2d6cf3..16ac91b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,14 +16,14 @@ serde_json = "1.0" druid = { git = "https://github.com/doppioandante/druid", branch = "v0.7.0_stiletto", features = ["im", "svg"] } #druid = { path = "../druid/druid/", features = ["im", "svg"] } -[dependencies.gtk] +[target.'cfg(target_os="linux")'.dependencies.gtk] version = "0.9.2" features = ["v3_22"] -[dependencies.gio] +[target.'cfg(target_os="linux")'.dependencies.gio] version = "0.9.1" features = ["v2_56"] -[dependencies.gdk] +[target.'cfg(target_os="linux")'.dependencies.gdk] version = "0.13.2" features = ["v3_22"]