# 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 = "paft"
version = "0.7.1"
authors = ["G. Ramistella <heydays_micron_7m@icloud.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Facade crate for paft: unified public API over the paft ecosystem."
homepage = "https://github.com/paft-rs/paft"
documentation = "https://docs.rs/paft"
readme = "README.md"
keywords = [
    "finance",
    "types",
    "stocks",
    "trading",
    "polars",
]
categories = [
    "finance",
    "data-structures",
    "api-bindings",
]
license = "MIT"
repository = "https://github.com/paft-rs/paft"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
aggregates = [
    "dep:paft-aggregates",
    "domain",
    "market",
    "fundamentals",
]
bigdecimal = [
    "paft-money/bigdecimal",
    "paft-market?/bigdecimal",
    "paft-fundamentals?/bigdecimal",
    "paft-aggregates?/bigdecimal",
]
dataframe = [
    "paft-utils/dataframe",
    "paft-money/dataframe",
    "paft-domain?/dataframe",
    "paft-market?/dataframe",
    "paft-fundamentals?/dataframe",
    "paft-aggregates?/dataframe",
]
default = [
    "domain",
    "market",
    "fundamentals",
]
domain = ["dep:paft-domain"]
full = [
    "domain",
    "market",
    "fundamentals",
    "aggregates",
    "dataframe",
]
fundamentals = [
    "dep:paft-fundamentals",
    "domain",
]
market = [
    "dep:paft-market",
    "domain",
]
money-formatting = ["paft-money/money-formatting"]
panicking-money-ops = ["paft-money/panicking-money-ops"]
tracing = [
    "dep:tracing",
    "paft-domain/tracing",
    "paft-money/tracing",
    "paft-market/tracing",
    "paft-fundamentals/tracing",
]

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

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

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

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

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

[dependencies.iso_currency]
version = "0.5"

[dependencies.paft-aggregates]
version = "0.7.1"
optional = true
default-features = false

[dependencies.paft-core]
version = "0.7.1"
default-features = false

[dependencies.paft-domain]
version = "0.7.1"
optional = true
default-features = false

[dependencies.paft-fundamentals]
version = "0.7.1"
optional = true
default-features = false

[dependencies.paft-market]
version = "0.7.1"
optional = true
default-features = false

[dependencies.paft-money]
version = "0.7.1"
default-features = false

[dependencies.paft-utils]
version = "0.7.1"
default-features = false

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tracing]
version = "0.1"
features = ["attributes"]
optional = true

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

[dev-dependencies.chrono-tz]
version = "0.10"
features = ["serde"]

[dev-dependencies.rust_decimal]
version = "1.39"
features = ["serde"]

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