mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
42 lines
1009 B
TOML
42 lines
1009 B
TOML
[package]
|
|
name = "auth"
|
|
rust-version.workspace = true
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
homepage.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
gpapi = { path = "../gpapi" }
|
|
|
|
# Shared dependencies
|
|
anyhow.workspace = true
|
|
log.workspace = true
|
|
tokio.workspace = true
|
|
|
|
# Browser auth dependencies
|
|
webbrowser = { version = "1", optional = true }
|
|
open = { version = "5", optional = true }
|
|
which = { workspace = true, optional = true }
|
|
|
|
# Webview auth dependencies
|
|
tauri = { workspace = true, optional = true }
|
|
regex = { workspace = true, optional = true }
|
|
tokio-util = { workspace = true, optional = true }
|
|
html-escape = { version = "0.2.13", optional = true }
|
|
|
|
[target.'cfg(not(target_os = "macos"))'.dependencies]
|
|
webkit2gtk = { version = "2", optional = true }
|
|
|
|
[features]
|
|
browser-auth = ["dep:webbrowser", "dep:open", "dep:which"]
|
|
webview-auth = [
|
|
"dep:tauri",
|
|
"dep:regex",
|
|
"dep:tokio-util",
|
|
"dep:html-escape",
|
|
"dep:webkit2gtk",
|
|
"gpapi/tauri",
|
|
]
|