From da9ddec364fd9faf77295b5ed1f123acd3b6dba4 Mon Sep 17 00:00:00 2001 From: Bastien Sevajol Date: Sat, 10 Aug 2024 15:31:56 +0200 Subject: [PATCH] chore: use wgpu backend for windows compatibility --- configure/Cargo.toml | 6 +++++- monitor/Cargo.toml | 6 +++++- systray/src/main.rs | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/configure/Cargo.toml b/configure/Cargo.toml index 114b79f..8bff5f4 100644 --- a/configure/Cargo.toml +++ b/configure/Cargo.toml @@ -11,7 +11,11 @@ path = "src/lib.rs" [dependencies] trsync_core = { path = "../core" } trsync_manager = { path = "../manager" } -eframe = "0.21.3" +eframe = { version = "0.21.3", default-features = false, features = [ + "default_fonts", + "wgpu", +] } +wgpu = "0.15.0" rfd = "0.10" anyhow = "1.0.69" crossbeam-channel = "0.5" diff --git a/monitor/Cargo.toml b/monitor/Cargo.toml index eb087f3..a0402e0 100644 --- a/monitor/Cargo.toml +++ b/monitor/Cargo.toml @@ -11,7 +11,11 @@ path = "src/lib.rs" [dependencies] trsync_core = { path = "../core" } trsync_manager = { path = "../manager" } -eframe = "0.21.3" +eframe = { version = "0.21.3", default-features = false, features = [ + "default_fonts", + "wgpu", +] } +wgpu = "0.15.0" rfd = "0.10" anyhow = "1.0.69" crossbeam-channel = "0.5" diff --git a/systray/src/main.rs b/systray/src/main.rs index 76c8e77..69d64d4 100644 --- a/systray/src/main.rs +++ b/systray/src/main.rs @@ -1,3 +1,4 @@ +// This line indicate windows to close associated terminal // #![windows_subsystem = "windows"] use anyhow::Result;