blas-src 0.12.1

The package provides a BLAS source of choice.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const FEATURES: &[&str] = &["accelerate", "blis", "intel-mkl", "netlib", "openblas", "r"];

fn main() {
    if FEATURES
        .iter()
        .map(|name| name.to_uppercase().replace('-', "_"))
        .map(|name| format!("CARGO_FEATURE_{name}"))
        .filter(|name| std::env::var(name).is_ok())
        .count()
        > 1
    {
        panic!("At most one BLAS implementation may be enabled at a time.");
    }
}