# 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 = "manifolds-rs"
version = "0.2.0"
authors = ["Gregor Lueg <gregorlueg@me.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Embedding methods implemented into Rust: (parametric) UMAP, tSNE, PHATE and PacMAP are supported."
readme = "README.md"
license = "MIT"
repository = "https://github.com/GregorLueg/manifolds-rs"

[features]
fft_tsne = ["fftw"]
gpu = [
    "ann-search-rs/gpu",
    "cubecl",
]
parametric = ["burn"]

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

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

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

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

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

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

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

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

[dependencies.ann-search-rs]
version = "0.2.13"
optional = false

[dependencies.approx]
version = "0.5.1"

[dependencies.burn]
version = "0.19.1"
features = [
    "dataset",
    "train",
    "ndarray",
]
optional = true

[dependencies.cubecl]
version = "0.9.0"
optional = true

[dependencies.faer]
version = "0.23.2"

[dependencies.faer-traits]
version = "0.23.2"

[dependencies.fftw]
version = "0.8.0"
optional = true

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

[dependencies.rand]
version = "0.9.2"

[dependencies.rand_distr]
version = "0.5.1"

[dependencies.rayon]
version = "1.11.0"

[dependencies.rustc-hash]
version = "2.1.1"

[dependencies.thousands]
version = "0.2.0"

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true

[profile.test]
opt-level = 2
