1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

Make sys deps optional for the proxy

This commit is contained in:
Daniel García
2024-07-08 16:38:14 +02:00
parent b6c42f6aa6
commit 8e61952d9a
3 changed files with 22 additions and 9 deletions

View File

@@ -6,9 +6,19 @@ version = "0.0.0"
publish = false
[features]
default = []
default = ["sys"]
manual_test = []
sys = [
"dep:widestring",
"dep:windows",
"dep:core-foundation",
"dep:security-framework",
"dep:security-framework-sys",
"dep:gio",
"dep:libsecret",
]
[dependencies]
aes = "=0.8.4"
anyhow = "=1.0.86"
@@ -31,7 +41,7 @@ tokio-util = "0.7.11"
typenum = "=1.17.0"
[target.'cfg(windows)'.dependencies]
widestring = "=1.1.0"
widestring = { version = "=1.1.0", optional = true }
windows = { version = "=0.57.0", features = [
"Foundation",
"Security_Credentials_UI",
@@ -42,16 +52,16 @@ windows = { version = "=0.57.0", features = [
"Win32_System_WinRT",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_UI_WindowsAndMessaging",
] }
], optional = true }
[target.'cfg(windows)'.dev-dependencies]
keytar = "=0.1.6"
[target.'cfg(target_os = "macos")'.dependencies]
core-foundation = "=0.9.4"
security-framework = "=2.11.0"
security-framework-sys = "=2.11.0"
core-foundation = { version = "=0.9.4", optional = true }
security-framework = { version = "=2.11.0", optional = true }
security-framework-sys = { version = "=2.11.0", optional = true }
[target.'cfg(target_os = "linux")'.dependencies]
gio = "=0.19.5"
libsecret = "=0.5.0"
gio = { version = "=0.19.5", optional = true }
libsecret = { version = "=0.5.0", optional = true }

View File

@@ -1,6 +1,9 @@
#[cfg(feature = "sys")]
pub mod biometric;
#[cfg(feature = "sys")]
pub mod clipboard;
pub mod crypto;
pub mod error;
pub mod ipc;
#[cfg(feature = "sys")]
pub mod password;

View File

@@ -8,7 +8,7 @@ publish = false
[dependencies]
anyhow = "=1.0.86"
desktop_core = { path = "../core" }
desktop_core = { path = "../core", default-features = false }
futures = "0.3.30"
log = "0.4.21"
simplelog = "0.12.2"