lazydns 0.3.20

A light and fast DNS server/forwarder implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::path::Path;

fn main() {
    // Tell rustc's cfg checker about the custom cfg so `#[cfg(webui_dist)]` doesn't warn
    println!("cargo:rustc-check-cfg=cfg(webui_dist)");

    // If webui/dist exists at build time, set a cfg flag for conditional compilation
    if Path::new("webui/dist").exists() {
        println!("cargo:rustc-cfg=webui_dist");
    } else {
        println!("cargo:warning=webui/dist not found; building without embedded webui assets");
    }
}