# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "scirs2-cluster"
version = "0.3.1"
authors = ["COOLJAPAN OU (Team KitaSan)"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Clustering algorithms module for SciRS2 (scirs2-cluster)"
readme = "README.md"
keywords = [
    "clustering",
    "scientific",
    "scipy",
    "numerical",
    "kmeans",
]
categories = [
    "science",
    "mathematics",
    "algorithms",
]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/scirs"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
all_compression = [
    "lz4_compression",
    "zstd_compression",
    "bzip2_compression",
]
all_formats = [
    "yaml",
    "msgpack",
    "cbor",
]
binary = []
bzip2_compression = ["bzip2"]
cbor = ["ciborium"]
cuda = ["gpu"]
default = [
    "json",
    "binary",
]
egui = [
    "dep:egui",
    "dep:eframe",
]
gpu = []
gpu_all = [
    "cuda",
    "opencl",
    "rocm",
    "metal",
    "oneapi",
]
json = []
lz4_compression = ["lz4"]
metal = ["gpu"]
msgpack = ["rmp-serde"]
oneapi = ["gpu"]
opencl = ["gpu"]
plotters = ["dep:plotters"]
python = ["scirs2-core/python"]
rocm = ["gpu"]
simd = ["scirs2-core/simd"]
visualization = [
    "plotters",
    "egui",
]
yaml = ["serde_yaml"]
zstd_compression = ["zstd"]

[lib]
name = "scirs2_cluster"
path = "src/lib.rs"

[[example]]
name = "advanced_test"
path = "examples/advanced_test.rs"

[[example]]
name = "advanced_visualization_demo"
path = "examples/advanced_visualization_demo.rs"

[[example]]
name = "all_algorithms_test"
path = "examples/all_algorithms_test.rs"

[[example]]
name = "animated_kmeans_demo"
path = "examples/animated_kmeans_demo.rs"

[[example]]
name = "birch_demo"
path = "examples/birch_demo.rs"

[[example]]
name = "cluster_advanced_features_demo"
path = "examples/cluster_advanced_features_demo.rs"

[[example]]
name = "cluster_advanced_visualization_demo"
path = "examples/cluster_advanced_visualization_demo.rs"

[[example]]
name = "custom_distance_metrics_demo"
path = "examples/custom_distance_metrics_demo.rs"

[[example]]
name = "dbscan_demo"
path = "examples/dbscan_demo.rs"

[[example]]
name = "dendrogram_plotting_demo"
path = "examples/dendrogram_plotting_demo.rs"

[[example]]
name = "ensemble_clustering_demo"
path = "examples/ensemble_clustering_demo.rs"

[[example]]
name = "evaluation_demo"
path = "examples/evaluation_demo.rs"

[[example]]
name = "evaluation_metrics_demo"
path = "examples/evaluation_metrics_demo.rs"

[[example]]
name = "gmm_demo"
path = "examples/gmm_demo.rs"

[[example]]
name = "hdbscan_demo"
path = "examples/hdbscan_demo.rs"

[[example]]
name = "hierarchical_demo"
path = "examples/hierarchical_demo.rs"

[[example]]
name = "kmeans2_demo"
path = "examples/kmeans2_demo.rs"

[[example]]
name = "kmeans2_scipy_compat"
path = "examples/kmeans2_scipy_compat.rs"

[[example]]
name = "kmeans_demo"
path = "examples/kmeans_demo.rs"

[[example]]
name = "leader_demo"
path = "examples/leader_demo.rs"

[[example]]
name = "meanshift_demo"
path = "examples/meanshift_demo.rs"

[[example]]
name = "meanshift_demo_improved"
path = "examples/meanshift_demo_improved.rs"

[[example]]
name = "minibatch_kmeans_demo"
path = "examples/minibatch_kmeans_demo.rs"

[[example]]
name = "native_plotting_demo"
path = "examples/native_plotting_demo.rs"

[[example]]
name = "optics_demo"
path = "examples/optics_demo.rs"

[[example]]
name = "parallel_hierarchical_demo"
path = "examples/parallel_hierarchical_demo.rs"

[[example]]
name = "parallel_kmeans_demo"
path = "examples/parallel_kmeans_demo.rs"

[[example]]
name = "quantum_annealing_demo"
path = "examples/quantum_annealing_demo.rs"

[[example]]
name = "serialization_demo"
path = "examples/serialization_demo.rs"

[[example]]
name = "silhouette_example"
path = "examples/silhouette_example.rs"

[[example]]
name = "simd_optimization_demo"
path = "examples/simd_optimization_demo.rs"

[[example]]
name = "test_advanced_enhanced"
path = "examples/test_advanced_enhanced.rs"

[[test]]
name = "integration_test"
path = "tests/integration_test.rs"

[[test]]
name = "simd_tests"
path = "tests/simd_tests.rs"

[[bench]]
name = "clustering_benchmarks"
path = "benches/clustering_benchmarks.rs"
harness = false

[dependencies.approx]
version = "0.5.1"

[dependencies.bzip2]
version = "0.6.1"
optional = true

[dependencies.chrono]
version = "0.4.44"

[dependencies.ciborium]
version = "0.2.2"
optional = true

[dependencies.eframe]
version = "0.33"
optional = true

[dependencies.egui]
version = "0.33"
optional = true

[dependencies.flate2]
version = "1.1"

[dependencies.lz4]
version = "1.28"
optional = true

[dependencies.num_cpus]
version = "1.17.0"

[dependencies.numpy]
version = "0.27.1"
optional = true

[dependencies.oxicode]
version = "0.1.1"
features = [
    "serde",
    "simd",
]

[dependencies.plotters]
version = "0.3.7"
optional = true

[dependencies.pyo3]
version = "0.27.2"
features = ["macros"]
optional = true
default-features = false

[dependencies.rmp-serde]
version = "1.3"
optional = true

[dependencies.scirs2-core]
version = "0.3.1"
features = [
    "parallel",
    "simd",
    "array",
    "random",
]
default-features = false

[dependencies.scirs2-linalg]
version = "0.3.1"
default-features = false

[dependencies.scirs2-spatial]
version = "0.3.1"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"
optional = true

[dependencies.statrs]
version = "0.18.0"

[dependencies.tar]
version = "0.4"

[dependencies.tempfile]
version = "3.26.0"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.uuid]
version = "1.21.0"
features = ["v4"]

[dependencies.zstd]
version = "0.13.3"
optional = true

[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]

[dev-dependencies.proptest]
version = "1.10.0"

[lints.clippy]
expect_used = "allow"
unwrap_used = "warn"

[lints.rust]
dead_code = "allow"
mismatched_lifetime_syntaxes = "allow"
unknown_lints = "allow"
unpredictable_function_pointer_comparisons = "allow"
unused_imports = "allow"
unused_mut = "allow"
unused_variables = "allow"
