mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 14:36:15 -05:00
67 lines
1.9 KiB
TOML
67 lines
1.9 KiB
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, features = ["io-util", "net", "time"] }
|
|
|
|
# Browser auth dependencies
|
|
browser-launcher = { path = "../browser-launcher", default-features = false, features = ["launcher"], optional = true }
|
|
tiny_http = { version = "0.12", optional = true }
|
|
uuid = { version = "1", optional = true, features = ["v4"] }
|
|
uzers = { 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.3", optional = true }
|
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "openbsd"))'.dependencies]
|
|
webkit2gtk = { version = "2", optional = true }
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
block2 = { version = "0.6", optional = true }
|
|
objc2 = { version = "0.6", optional = true }
|
|
objc2-app-kit = { version = "0.3", default-features = false, features = ["std", "NSWorkspace", "block2"], optional = true }
|
|
objc2-foundation = { version = "0.3", optional = true }
|
|
objc2-web-kit = { version = "0.3", optional = true }
|
|
|
|
[features]
|
|
browser-auth = [
|
|
"dep:browser-launcher",
|
|
"dep:tiny_http",
|
|
"dep:uuid",
|
|
"dep:uzers",
|
|
"dep:block2",
|
|
"dep:objc2",
|
|
"dep:objc2-app-kit",
|
|
"dep:objc2-foundation",
|
|
]
|
|
webview-auth = [
|
|
"gpapi/tauri",
|
|
"dep:tauri",
|
|
"dep:regex",
|
|
"dep:tokio-util",
|
|
"dep:html-escape",
|
|
"dep:webkit2gtk",
|
|
"dep:block2",
|
|
"dep:objc2",
|
|
"dep:objc2-foundation",
|
|
"dep:objc2-web-kit",
|
|
]
|
|
release-devtools = ["webview-auth", "tauri/devtools"]
|
|
|
|
[dev-dependencies]
|
|
tempfile.workspace = true
|