wrest 0.5.2

Async HTTP client for Windows backed by WinHTTP, with a reqwest-compatible API
Documentation
1
2
3
4
5
6
7
8
9
10
11
fn main() {
    // Emit a single cfg flag so the rest of the crate can write
    // `#[cfg(native_winhttp)]` instead of the verbose
    // `#[cfg(all(windows, not(feature = "always-reqwest")))]`.
    let is_windows = std::env::var("CARGO_CFG_WINDOWS").is_ok();
    let always_reqwest = std::env::var("CARGO_FEATURE_ALWAYS_REQWEST").is_ok();

    if is_windows && !always_reqwest {
        println!("cargo:rustc-cfg=native_winhttp");
    }
}