# 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 = "yfinance-rs"
version = "0.7.2"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Ergonomic Rust client for Yahoo Finance, supporting historical prices, real-time streaming, options, fundamentals, and more."
homepage = "https://github.com/gramistella/yfinance-rs"
documentation = "https://docs.rs/yfinance-rs"
readme = "README.md"
keywords = [
    "yahoo",
    "finance",
    "stocks",
    "trading",
    "yfinance",
]
categories = [
    "api-bindings",
    "finance",
]
license = "MIT"
repository = "https://github.com/gramistella/yfinance-rs"

[package.metadata.docs.rs]
all-features = true

[package.metadata.cargo-doc]
all-features = true

[features]
dataframe = [
    "polars",
    "paft/dataframe",
]
debug-dumps = []
default = []
test-mode = []
tracing = ["dep:tracing"]
tracing-subscriber = [
    "tracing",
    "dep:tracing-subscriber",
]

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

[[example]]
name = "01_basic_usage"
path = "examples/01_basic_usage.rs"

[[example]]
name = "02_fundamentals_and_search"
path = "examples/02_fundamentals_and_search.rs"

[[example]]
name = "03_esg_and_analysis"
path = "examples/03_esg_and_analysis.rs"

[[example]]
name = "04_historical_actions"
path = "examples/04_historical_actions.rs"

[[example]]
name = "05_concurrent_requests"
path = "examples/05_concurrent_requests.rs"

[[example]]
name = "06_realtime_polling"
path = "examples/06_realtime_polling.rs"

[[example]]
name = "07_quarterly_fundamentals"
path = "examples/07_quarterly_fundamentals.rs"

[[example]]
name = "08_advanced_analysis"
path = "examples/08_advanced_analysis.rs"

[[example]]
name = "09_holders_and_insiders"
path = "examples/09_holders_and_insiders.rs"

[[example]]
name = "10_convenience_methods"
path = "examples/10_convenience_methods.rs"

[[example]]
name = "11_builder_configuration"
path = "examples/11_builder_configuration.rs"

[[example]]
name = "12_advanced_client"
path = "examples/12_advanced_client.rs"

[[example]]
name = "13_custom_client_and_proxy"
path = "examples/13_custom_client_and_proxy.rs"

[[example]]
name = "14_polars_dataframes"
path = "examples/14_polars_dataframes.rs"
required-features = ["dataframe"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.base64]
version = "0.22"

[dependencies.chrono]
version = "0.4.42"
features = ["serde"]

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

[dependencies.futures]
version = "0.3"

[dependencies.futures-util]
version = "0.3"

[dependencies.paft]
version = "0.7.1"
features = [
    "market",
    "fundamentals",
    "domain",
    "aggregates",
]

[dependencies.polars]
version = "0.51"
optional = true
default-features = false

[dependencies.prost]
version = "0.14"

[dependencies.reqwest]
version = "0.12.24"
features = [
    "json",
    "rustls-tls",
    "gzip",
    "brotli",
    "deflate",
    "cookies",
]
default-features = false

[dependencies.rust_decimal]
version = "1.36"

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

[dependencies.serde_json]
version = "1.0.145"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.48"
features = [
    "macros",
    "rt-multi-thread",
]

[dependencies.tokio-tungstenite]
version = "0.28"
features = ["rustls-tls-native-roots"]

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

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "fmt",
    "std",
    "env-filter",
]
optional = true
default-features = false

[dependencies.url]
version = "2.5.7"

[dev-dependencies.httpmock]
version = "0.8.2"

[dev-dependencies.polars]
version = "0.51"
features = [
    "lazy",
    "rolling_window",
]
default-features = false
