# 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 = "2024"
name = "bhtsne"
version = "0.7.11"
authors = ["frjnn <f.iannelli.francesco229@gmail.com>"]
build = false
exclude = ["/imgs"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Exact and Barnes-Hut implementations of t-SNE."
readme = "README.md"
keywords = [
    "Barnes-Hut",
    "data-analysis",
    "data-visualization",
    "machine-learning",
    "tsne",
]
categories = [
    "algorithms",
    "science",
    "visualization",
]
license = "MIT"
repository = "https://github.com/frjnn/bhtsne"
resolver = "2"

[features]
default = ["csv"]
wasm_js = [
    "dep:getrandom",
    "rand/thread_rng",
]

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

[[example]]
name = "fit_vs_bh"
path = "examples/fit_vs_bh.rs"
required-features = ["csv"]

[[example]]
name = "mnist_pca_tsne"
path = "examples/mnist_pca_tsne.rs"
required-features = ["csv"]

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

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

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

[dependencies.barnes-hut-tree]
version = "=0.1.0"

[dependencies.csv]
version = "1"
optional = true

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

[dependencies.rand_distr]
version = "0.5"

[dependencies.rayon]
version = "1"

[dependencies.realfft]
version = "3"

[dependencies.rustfft]
version = "6"

[dev-dependencies.chrono]
version = "0.4"

[dev-dependencies.criterion]
version = "0.8"
features = ["cargo_bench_support"]
default-features = false

[dev-dependencies.csv]
version = "1.3"

[dev-dependencies.npyz]
version = "0.9"
features = ["npz"]

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

[dev-dependencies.plotters]
version = "0.3"
features = [
    "bitmap_backend",
    "bitmap_encoder",
    "point_series",
    "ttf",
]
default-features = false

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

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.getrandom]
version = "0.3.3"
features = ["wasm_js"]
optional = true

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.rand]
version = "0.9"
features = [
    "std",
    "small_rng",
]
default-features = false

[target.'cfg(not(all(target_arch = "wasm32", target_os = "unknown")))'.dependencies.rand]
version = "0.9"

[lints.rust]
unsafe_code = "forbid"
