# 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"
rust-version = "1.88"
name = "mantis-ta"
version = "0.6.3"
authors = ["MANTIS Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Composable technical analysis and strategy engine for Rust"
documentation = "https://docs.rs/mantis-ta"
readme = "README.md"
keywords = [
    "technical-analysis",
    "trading",
    "finance",
    "indicators",
    "backtesting",
]
categories = [
    "algorithms",
    "mathematics",
    "finance",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/SHA888/mantis-ta"

[features]
all = [
    "serde",
    "ndarray",
    "simd",
    "full-indicators",
    "strategy",
    "backtest",
]
backtest = ["strategy"]
default = [
    "serde",
    "strategy",
]
full-indicators = []
ndarray = ["dep:ndarray"]
serde = [
    "dep:serde",
    "dep:serde_json",
]
simd = []
strategy = []

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

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

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

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

[[example]]
name = "golden_cross_strategy"
path = "examples/golden_cross_strategy.rs"
required-features = ["strategy"]

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

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

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

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

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

[[bench]]
name = "backtest"
path = "benches/backtest.rs"
harness = false
required-features = ["backtest"]

[[bench]]
name = "batch_a_indicators"
path = "benches/batch_a_indicators.rs"

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

[[bench]]
name = "common"
path = "benches/common.rs"

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

[[bench]]
name = "strategy_eval"
path = "benches/strategy_eval.rs"
harness = false
required-features = ["strategy"]

[dependencies.ndarray]
version = "0.17.2"
optional = true

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

[dependencies.serde_json]
version = "1.0.149"
optional = true

[dependencies.thiserror]
version = "2.0.18"

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

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

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

[dev-dependencies.rand]
version = "0.10.0"

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