native-ipc 0.6.3

One safe API for least-authority native shared memory: sealed memfd on Linux, Mach memory entries on macOS, exact-rights sections on Windows
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Builds the audited external-memory volatile-copy boundary.

fn main() {
    println!("cargo::rustc-check-cfg=cfg(loom)");
    println!("cargo::rerun-if-changed=src/external_memory.c");
    println!("cargo::rerun-if-env-changed=DOCS_RS");

    if std::env::var_os("DOCS_RS").is_some() {
        return;
    }

    cc::Build::new()
        .file("src/external_memory.c")
        .warnings(true)
        .compile("native_ipc_external_memory");
}