From 1ab36a1137279891f014242fc2bcda1fbda380ea Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Sat, 9 May 2026 20:21:37 +0800 Subject: [PATCH] fix: gate gtk dependency behind tauri feature --- crates/gpapi/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/gpapi/Cargo.toml b/crates/gpapi/Cargo.toml index bf4fb35..027adc6 100644 --- a/crates/gpapi/Cargo.toml +++ b/crates/gpapi/Cargo.toml @@ -51,10 +51,10 @@ os_info = { version = "3", default-features = false } # Dependencies for Linux and other OSes only [target.'cfg(not(any(target_os="macos", target_os="windows")))'.dependencies] -gtk = "0.18" +gtk = { version = "0.18", optional = true } [features] -tauri = ["dep:tauri"] +tauri = ["dep:tauri", "dep:gtk"] clap = ["dep:clap", "dep:clap-verbosity-flag"] webview-auth = [] logger = ["dep:env_logger", "dep:log-reload"]