nym-http-api-client-macro 1.22.2

Proc-macros for configuring HTTP clients globally via the `inventory` crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::env;

fn main() {
    // Enable debug output during build
    if env::var("CARGO_FEATURE_DEBUG_INVENTORY").is_ok() || env::var("DEBUG_HTTP_INVENTORY").is_ok()
    {
        println!("cargo:warning=HTTP Client Inventory Debug Enabled");
        println!("cargo:rustc-cfg=debug_inventory");
    }

    // Force rebuild when this environment variable changes
    println!("cargo:rerun-if-env-changed=DEBUG_HTTP_INVENTORY");
}