netwatch 0.19.1

Cross-platform monitoring for network interface changes
Documentation
1
2
3
4
5
6
7
8
9
10
11
use cfg_aliases::cfg_aliases;

fn main() {
    // Setup cfg aliases
    cfg_aliases! {
        // Convenience aliases
        wasm_browser: { all(target_family = "wasm", target_os = "unknown") },
        // Limited POSIX platforms (not wasm)
        posix_minimal: { target_os = "espidf" },
    }
}