scirs2-cluster 0.1.0-rc.2

Clustering algorithms module for SciRS2 (scirs2-cluster)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::env;

#[allow(dead_code)]
fn main() {
    // Skip clippy checks for dependencies to avoid build failures
    if let Ok(val) = env::var("CARGO_PRIMARY_PACKAGE") {
        if val == "1" {
            // This is the primary package, run clippy
        } else {
            // This is a dependency, skip clippy
            println!("cargo:rustc-env=CLIPPY_DISABLE=1");
        }
    }
}