mpi 0.8.1

Message Passing Interface bindings for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() {
    // https://blog.rust-lang.org/2024/05/06/check-cfg.html#buildrs-example
    println!("cargo:rustc-check-cfg=cfg(msmpi)");

    let is_msmpi = match build_probe_mpi::probe() {
        Ok(lib) => lib.version == "MS-MPI",
        _ => false,
    };

    if is_msmpi {
        println!("cargo:rustc-cfg=msmpi");
    }
}