proxy-watch 0.1.1

Detect and watch operating system proxy configuration changes
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.88"
name = "proxy-watch"
version = "0.1.1"
authors = ["gnoays <169730769+gnoays@users.noreply.github.com>"]
build = false
include = [
    "/src/**/*.rs",
    "/examples/*.rs",
    "/README.md",
    "/LICENSE-MIT",
    "/LICENSE-APACHE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Detect and watch operating system proxy configuration changes"
readme = "README.md"
keywords = [
    "proxy",
    "system-proxy",
    "pac",
    "watcher",
    "http",
]
categories = [
    "network-programming",
    "os",
    "config",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/gnoays/proxy-watch"

[package.metadata.docs.rs]
all-features = true
targets = [
    "x86_64-pc-windows-msvc",
    "x86_64-apple-darwin",
    "x86_64-unknown-linux-gnu",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = [
    "resolve",
    "linux-gnome",
    "linux-kde",
]
linux-gnome = [
    "dep:gio",
    "dep:glib",
]
linux-kde = [
    "dep:notify",
    "dep:configparser",
]
pac = ["resolve"]
pac-boa = [
    "pac",
    "dep:boa_engine",
]
pac-windows-native = ["pac"]
resolve = []
tokio = ["dep:tokio"]
tracing = ["dep:tracing"]

[lib]
name = "proxy_watch"
path = "src/lib.rs"

[[example]]
name = "current"
path = "examples/current.rs"

[[example]]
name = "env"
path = "examples/env.rs"

[[example]]
name = "pac"
path = "examples/pac.rs"
required-features = ["pac-boa"]

[[example]]
name = "reqwest_client"
path = "examples/reqwest_client.rs"
required-features = ["resolve"]

[[example]]
name = "resolve"
path = "examples/resolve.rs"
required-features = ["resolve"]

[[example]]
name = "resolve_os_and_env"
path = "examples/resolve_os_and_env.rs"
required-features = ["resolve"]

[[example]]
name = "watch"
path = "examples/watch.rs"

[dependencies.boa_engine]
version = "0.21"
optional = true
default-features = false

[dependencies.futures-core]
version = "0.3"
features = ["std"]
default-features = false

[dependencies.ipnet]
version = "2.9"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "sync",
]
optional = true
default-features = false

[dependencies.tracing]
version = "0.1.41"
features = ["std"]
optional = true
default-features = false

[dependencies.url]
version = "2.5"

[dev-dependencies.futures-executor]
version = "0.3"

[dev-dependencies.futures-util]
version = "0.3"

[dev-dependencies.reqwest]
version = "0.12"
default-features = false

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["fmt"]
default-features = false

[target.'cfg(target_os = "linux")'.dependencies.configparser]
version = "3"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.gio]
version = "0.22"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.glib]
version = "0.22"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.notify]
version = "8"
optional = true

[target.'cfg(target_os = "macos")'.dependencies.core-foundation]
version = "0.9"

[target.'cfg(target_os = "macos")'.dependencies.system-configuration]
version = "0.7"

[target.'cfg(target_os = "macos")'.dev-dependencies.system-configuration]
version = "0.7"

[target."cfg(windows)".dependencies.windows]
version = "0.62.2"
features = [
    "Win32_Foundation",
    "Win32_Networking_WinHttp",
    "Win32_Security",
    "Win32_System_Registry",
    "Win32_System_Threading",
]

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"