rblas 0.0.13

BLAS bindings and wrappers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::env::var;

fn main() {
    let link_type = env_or_default("CARGO_BLAS_TYPE", "dylib");
    let link_name = env_or_default("CARGO_BLAS", "blas");

    println!("cargo:rustc-link-lib={}={}", link_type, link_name);
}

fn env_or_default(var_name: &str, default: &str) -> String {
    match var(var_name) {
        Ok(s) => s,
        Err(_) => default.into(),
    }
}