mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 14:36:15 -05:00
124 lines
4.6 KiB
TOML
124 lines
4.6 KiB
TOML
[package]
|
|
name = "gpapi"
|
|
rust-version.workspace = true
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license = "MIT"
|
|
|
|
[dependencies]
|
|
gp-xml = { path = "../gp-xml" }
|
|
common = { path = "../common" }
|
|
anyhow.workspace = true
|
|
base64.workspace = true
|
|
dns-lookup = { workspace = true, optional = true }
|
|
log.workspace = true
|
|
reqwest.workspace = true
|
|
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
|
|
rustls-pemfile = "2"
|
|
rustls-platform-verifier = "0.7"
|
|
p12-keystore = "0.4.1"
|
|
pkcs12 = { version = "=0.2.0-pre.0", default-features = false }
|
|
cms = { version = "=0.3.0-pre.1", default-features = false }
|
|
pem.workspace = true
|
|
pkcs8 = { version = "0.11", features = ["pem", "encryption", "sha1-insecure", "3des", "des-insecure"] }
|
|
x509-cert = { version = "0.3", default-features = false }
|
|
xmltree.workspace = true
|
|
serde.workspace = true
|
|
specta = { workspace = true, features = ["derive", "uuid"] }
|
|
urlencoding.workspace = true
|
|
tokio = { workspace = true, features = ["fs", "macros", "rt", "time"] }
|
|
tokio-util.workspace = true
|
|
serde_json.workspace = true
|
|
whoami = { workspace = true, optional = true }
|
|
tempfile.workspace = true
|
|
thiserror.workspace = true
|
|
chacha20poly1305 = { version = "0.11", features = ["zeroize"] }
|
|
url.workspace = true
|
|
regex.workspace = true
|
|
serde_urlencoded.workspace = true
|
|
md5.workspace = true
|
|
sha2.workspace = true
|
|
uuid = { workspace = true, features = ["v4", "v5", "serde"] }
|
|
chrono.workspace = true
|
|
humantime.workspace = true
|
|
netdev = { workspace = true, optional = true }
|
|
socket2 = { version = "0.6", features = ["all"], optional = true }
|
|
snow.workspace = true
|
|
zeroize = { workspace = true, features = ["serde"] }
|
|
getrandom = "0.4"
|
|
|
|
# Used only by the opt-in certificate interoperability tests.
|
|
openssl = { workspace = true, optional = true }
|
|
|
|
# Optional dependencies for features
|
|
tauri = { workspace = true, optional = true }
|
|
clap = { workspace = true, optional = true }
|
|
clap-verbosity-flag = { workspace = true, optional = true }
|
|
|
|
env_logger = { workspace = true, optional = true }
|
|
log-reload = { version = "0.1", optional = true }
|
|
|
|
[target.'cfg(any(target_os="macos", target_os="ios"))'.dependencies]
|
|
oslog = { version = "0.2", default-features = false, optional = true }
|
|
|
|
# Dependencies for Linux and other OSes only
|
|
[target.'cfg(not(any(target_os="macos", target_os="windows")))'.dependencies]
|
|
gtk = { version = "0.18", optional = true }
|
|
|
|
[target.'cfg(any(target_os="linux", target_os="freebsd", target_os="openbsd"))'.dependencies]
|
|
directories = { workspace = true, optional = true }
|
|
|
|
[target.'cfg(target_os="linux")'.dependencies]
|
|
libloading = { version = "0.9", optional = true }
|
|
|
|
[target.'cfg(target_os="macos")'.dependencies]
|
|
os_info = { version = "3", default-features = false, optional = true }
|
|
|
|
[target.'cfg(target_os="windows")'.dependencies]
|
|
os_info = { version = "3", default-features = false }
|
|
|
|
[build-dependencies]
|
|
cc = "1"
|
|
pkg-config = "0.3"
|
|
|
|
[dev-dependencies]
|
|
libloading = "0.9"
|
|
proptest.workspace = true
|
|
tokio = { workspace = true, features = ["test-util"] }
|
|
|
|
[features]
|
|
default = ["desktop"]
|
|
desktop = ["tokio/process", "tokio/signal", "dep:directories", "dep:nix", "dep:uzers", "dep:netdev", "dep:whoami", "dep:dns-lookup", "dep:socket2", "dep:libloading"]
|
|
tauri = ["desktop", "dep:tauri", "dep:gtk", "dep:os_info"]
|
|
clap = ["desktop", "dep:clap", "dep:clap-verbosity-flag"]
|
|
webview-auth = []
|
|
openssl-tests = ["dep:openssl"]
|
|
logger = ["desktop", "dep:env_logger", "dep:log-reload", "dep:oslog", "dep:file-rotate"]
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
nix = { version = "0.31", features = ["fs", "signal", "process"], optional = true }
|
|
uzers = { workspace = true, optional = true }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
file-rotate = { version = "0.8.0", optional = true }
|
|
windows-sys = { version = "0.61", features = ["Win32_NetworkManagement_IpHelper", "Win32_NetworkManagement_Ndis", "Win32_Networking_WinSock", "Win32_Foundation", "Win32_Security", "Win32_Security_Authorization", "Win32_Storage_FileSystem", "Win32_System_Pipes", "Win32_System_Threading", "Win32_System_Services", "Win32_Globalization", "Win32_System_Environment", "Win32_System_JobObjects", "Win32_System_IO", "Win32_System_Registry", "Win32_System_SystemInformation"] }
|
|
|
|
[target.'cfg(windows)'.dev-dependencies]
|
|
windows-sys = { version = "0.61", features = ["Win32_UI_Shell"] }
|
|
|
|
[[test]]
|
|
name = "certificate_compatibility"
|
|
required-features = ["openssl-tests"]
|
|
|
|
[[test]]
|
|
name = "client_certificate_chain"
|
|
required-features = ["openssl-tests"]
|
|
|
|
[[test]]
|
|
name = "client_certificate_extensions"
|
|
required-features = ["openssl-tests"]
|
|
|
|
[[test]]
|
|
name = "client_certificate_tls12_hash"
|
|
required-features = ["openssl-tests"]
|