# 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 = "amari-enumerative"
version = "0.16.0"
authors = ["Amari Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Enumerative geometry capabilities for the Amari library"
readme = "README.md"
keywords = [
    "mathematics",
    "geometry",
    "enumerative",
    "intersection",
    "schubert",
]
categories = [
    "mathematics",
    "science",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/justinelliottcobb/Amari"

[features]
default = [
    "std",
    "high-precision",
]
gpu = [
    "bytemuck",
    "wgpu",
    "pollster",
    "futures",
    "tokio",
]
high-precision = ["amari-core/high-precision"]
parallel = ["dep:rayon"]
performance = ["parallel"]
serde = [
    "dep:serde",
    "num-rational/serde",
    "num-bigint/serde",
]
std = []
wasm = [
    "dep:wasm-bindgen",
    "dep:js-sys",
    "dep:web-sys",
]
wasm-full = [
    "wasm",
    "gpu",
    "performance",
]

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

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

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

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

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

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

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

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

[dependencies.amari-core]
version = "0.16.0"

[dependencies.bytemuck]
version = "1.14"
features = ["derive"]
optional = true

[dependencies.futures]
version = "0.3"
optional = true

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.num-bigint]
version = "0.4"

[dependencies.num-rational]
version = "0.4"

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

[dependencies.once_cell]
version = "1.19"

[dependencies.pollster]
version = "0.3"
optional = true

[dependencies.rayon]
version = "1.8"
optional = true

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

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.0"
features = [
    "macros",
    "rt-multi-thread",
]
optional = true

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

[dependencies.web-sys]
version = "0.3"
optional = true

[dependencies.wgpu]
version = "0.19"
optional = true

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

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