proxy-watch 0.3.1

Read and watch the operating system's proxy settings, layered with *_proxy, and the route each URL takes under them
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! The worker process a `proxy_watch::pac::SubprocessEvaluator` starts: one PAC evaluation
//! over standard input and output, then exit.

#[cfg(pac_quickjs)]
fn main() -> std::process::ExitCode {
    proxy_watch::pac::serve_worker()
}

// Android and iOS build `pac-quickjs` without its engine, so there is nothing to serve.
#[cfg(not(pac_quickjs))]
fn main() -> std::process::ExitCode {
    std::process::ExitCode::FAILURE
}