From 71586a255aa9cbe31d5470f8afebf591951b8717 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Thu, 7 May 2026 21:00:30 +0200 Subject: [PATCH] chore(tui): add keyring platform feature flags --- crates/tui/Cargo.toml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/crates/tui/Cargo.toml b/crates/tui/Cargo.toml index ca4cc07..ea096db 100644 --- a/crates/tui/Cargo.toml +++ b/crates/tui/Cargo.toml @@ -3,13 +3,25 @@ name = "tui" version = "0.1.0" edition = "2024" +[features] +default = [] +macos = ["dep:apple-native-keyring-store"] +linux-zbus = ["dep:zbus-secret-service-keyring-store"] +windows = ["dep:windows-native-keyring-store"] +sqlite = ["dep:db-keystore"] + [dependencies] ratatui = "0.30.0" -keyring = { version = "3", features = ["apple-native"] } +keyring-core = "1.0.0" directories = "6" csv = "1" +apple-native-keyring-store = { version = "1.0.0", optional = true, features = ["keychain"] } +zbus-secret-service-keyring-store = { version = "1.0.0", optional = true } +windows-native-keyring-store = { version = "1.0.0", optional = true } +db-keystore = { version = "0.4.1", optional = true } + reqwest = { workspace = true } serde = { workspace = true } serde_json = { workspace = true }