cdumay_core 0.1.7

A Rust Library for standard code
Documentation
1
2
3
4
5
6
7
8
9
10
11
// Emit cfgs so integration tests in tests/ can be conditionally compiled based on package features.
fn main() {
    println!("cargo:rustc-check-cfg=cfg(have_actix_web)");
    println!("cargo:rustc-check-cfg=cfg(have_utoipa)");
    if std::env::var("CARGO_FEATURE_ACTIX_WEB").is_ok() {
        println!("cargo:rustc-cfg=have_actix_web");
    }
    if std::env::var("CARGO_FEATURE_UTOIPA").is_ok() {
        println!("cargo:rustc-cfg=have_utoipa");
    }
}