[package]
name = "system_proxy"
version = "0.3.1"
authors = ["Sebastian Wiesner <sebastian@swsnr.de>"]
edition = "2021"
rust-version = "1.66"
description = "Get the system-wide HTTP proxy"
documentation = "https://docs.rs/system_proxy"
readme = "README.md"
homepage = "https://github.com/swsnr/system_proxy.rs"
repository = "https://github.com/swsnr/system_proxy.rs.git"
license = "MPL-2.0"
keywords = ["HTTP", "proxy", "sytem-wide"]
categories = [
"api-bindings",
"os",
"network-programming",
"web-programming::http-client",
]
[features]
default = []
gio = ["dep:glib", "dep:gio"]
portal = ["zbus"]
tokio = ["zbus/tokio"]
[dependencies]
log = "0.4.17"
url = "2.3.1"
static_assertions = "1.1.0"
[dev-dependencies]
temp-env = "0.3.2"
pretty_assertions = "1.3.0"
reqwest = { version = "0.11.14", features = ["blocking"] }
tokio = { version = "1.26.0", features = ["rt", "sync"] }
zbus = { version = "3.10.0", default-features = false, features = ["tokio"] }
[target.'cfg(all(unix, not(target_os="mac_os")))'.dependencies]
gio = { version = "0.17.2", optional = true }
glib = { version = "0.17.2", optional = true, features = ["v2_66"] }
zbus = { version = "3.10.0", optional = true, default-features = false }
[package.metadata.docs.rs]
all-features = true
features = ["glib/dox", "gio/dox", "zbus/async-io"]