# 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 = "hdbscan-rs"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HDBSCAN clustering algorithm, compatible with scikit-learn"
readme = "README.md"
keywords = [
    "clustering",
    "hdbscan",
    "machine-learning",
    "density-based",
    "unsupervised",
]
categories = [
    "algorithms",
    "science",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/JasonLovesDoggo/hdbscan-rs"

[features]
default = []
python = [
    "dep:pyo3",
    "dep:numpy",
]
serde = ["dep:serde"]

[lib]
name = "hdbscan_rs"
crate-type = [
    "lib",
    "cdylib",
]
path = "src/lib.rs"

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

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

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

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

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

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

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

[dependencies.log]
version = "0.4"

[dependencies.ndarray]
version = "0.16"

[dependencies.num-traits]
version = "0.2"

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

[dependencies.ordered-float]
version = "4"

[dependencies.pyo3]
version = "0.24"
features = ["extension-module"]
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.thiserror]
version = "2"

[dev-dependencies.approx]
version = "0.5"

[dev-dependencies.serde]
version = "1"
features = ["derive"]

[dev-dependencies.serde_json]
version = "1"
