# 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"
rust-version = "1.75"
name = "mantis-ta"
version = "0.1.0"
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"]
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"

[[example]]
name = "streaming_ema"
path = "examples/streaming_ema.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

[[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

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

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

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

[dependencies.thiserror]
version = "2"

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

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

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

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

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