mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
Make sys deps optional for the proxy
This commit is contained in:
@@ -6,9 +6,19 @@ version = "0.0.0"
|
|||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = ["sys"]
|
||||||
manual_test = []
|
manual_test = []
|
||||||
|
|
||||||
|
sys = [
|
||||||
|
"dep:widestring",
|
||||||
|
"dep:windows",
|
||||||
|
"dep:core-foundation",
|
||||||
|
"dep:security-framework",
|
||||||
|
"dep:security-framework-sys",
|
||||||
|
"dep:gio",
|
||||||
|
"dep:libsecret",
|
||||||
|
]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
aes = "=0.8.4"
|
aes = "=0.8.4"
|
||||||
anyhow = "=1.0.86"
|
anyhow = "=1.0.86"
|
||||||
@@ -31,7 +41,7 @@ tokio-util = "0.7.11"
|
|||||||
typenum = "=1.17.0"
|
typenum = "=1.17.0"
|
||||||
|
|
||||||
[target.'cfg(windows)'.dependencies]
|
[target.'cfg(windows)'.dependencies]
|
||||||
widestring = "=1.1.0"
|
widestring = { version = "=1.1.0", optional = true }
|
||||||
windows = { version = "=0.57.0", features = [
|
windows = { version = "=0.57.0", features = [
|
||||||
"Foundation",
|
"Foundation",
|
||||||
"Security_Credentials_UI",
|
"Security_Credentials_UI",
|
||||||
@@ -42,16 +52,16 @@ windows = { version = "=0.57.0", features = [
|
|||||||
"Win32_System_WinRT",
|
"Win32_System_WinRT",
|
||||||
"Win32_UI_Input_KeyboardAndMouse",
|
"Win32_UI_Input_KeyboardAndMouse",
|
||||||
"Win32_UI_WindowsAndMessaging",
|
"Win32_UI_WindowsAndMessaging",
|
||||||
] }
|
], optional = true }
|
||||||
|
|
||||||
[target.'cfg(windows)'.dev-dependencies]
|
[target.'cfg(windows)'.dev-dependencies]
|
||||||
keytar = "=0.1.6"
|
keytar = "=0.1.6"
|
||||||
|
|
||||||
[target.'cfg(target_os = "macos")'.dependencies]
|
[target.'cfg(target_os = "macos")'.dependencies]
|
||||||
core-foundation = "=0.9.4"
|
core-foundation = { version = "=0.9.4", optional = true }
|
||||||
security-framework = "=2.11.0"
|
security-framework = { version = "=2.11.0", optional = true }
|
||||||
security-framework-sys = "=2.11.0"
|
security-framework-sys = { version = "=2.11.0", optional = true }
|
||||||
|
|
||||||
[target.'cfg(target_os = "linux")'.dependencies]
|
[target.'cfg(target_os = "linux")'.dependencies]
|
||||||
gio = "=0.19.5"
|
gio = { version = "=0.19.5", optional = true }
|
||||||
libsecret = "=0.5.0"
|
libsecret = { version = "=0.5.0", optional = true }
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
|
#[cfg(feature = "sys")]
|
||||||
pub mod biometric;
|
pub mod biometric;
|
||||||
|
#[cfg(feature = "sys")]
|
||||||
pub mod clipboard;
|
pub mod clipboard;
|
||||||
pub mod crypto;
|
pub mod crypto;
|
||||||
pub mod error;
|
pub mod error;
|
||||||
pub mod ipc;
|
pub mod ipc;
|
||||||
|
#[cfg(feature = "sys")]
|
||||||
pub mod password;
|
pub mod password;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ publish = false
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "=1.0.86"
|
anyhow = "=1.0.86"
|
||||||
desktop_core = { path = "../core" }
|
desktop_core = { path = "../core", default-features = false }
|
||||||
futures = "0.3.30"
|
futures = "0.3.30"
|
||||||
log = "0.4.21"
|
log = "0.4.21"
|
||||||
simplelog = "0.12.2"
|
simplelog = "0.12.2"
|
||||||
|
|||||||
Reference in New Issue
Block a user