finance-query 2.3.0

A Rust library for querying financial data
Documentation
# 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 = "finance-query"
version = "2.3.0"
authors = ["Harvey Tseng <harveytseng2@gmail.com>"]
build = false
exclude = [
    "server/",
    ".github/",
    "v1/",
    "docs/",
    "*.md",
    "!README.md",
    ".env*",
    "Makefile",
    "docker-compose*.yml",
    "nginx/",
    "mkdocs.yml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust library for querying financial data"
homepage = "https://github.com/Verdenroz/finance-query"
documentation = "https://docs.rs/finance-query"
readme = "README.md"
keywords = [
    "finance",
    "yahoo",
    "stocks",
    "quotes",
    "market-data",
]
categories = [
    "api-bindings",
    "finance",
]
license = "MIT"
repository = "https://github.com/Verdenroz/finance-query"
resolver = "2"

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

[features]
backtesting = ["indicators"]
crypto = []
dataframe = [
    "dep:polars",
    "dep:finance-query-derive",
]
default = []
fred = ["dep:csv"]
indicators = []
risk = ["indicators"]
rss = ["dep:feed-rs"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.async-trait]
version = "0.1"

[dependencies.base64]
version = "0.22"

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

[dependencies.const_format]
version = "0.2"

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

[dependencies.feed-rs]
version = "2"
optional = true

[dependencies.finance-query-derive]
version = "2.3.0"
optional = true

[dependencies.futures]
version = "0.3"

[dependencies.once_cell]
version = "1"

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

[dependencies.prost]
version = "0.14.1"

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "cookies",
    "gzip",
    "brotli",
    "blocking",
    "query",
]

[dependencies.scraper]
version = "0.25.0"

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_repr]
version = "0.1"

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tokio-stream]
version = "0.1"
features = ["sync"]

[dependencies.tokio-tungstenite]
version = "0.28.0"
features = [
    "connect",
    "rustls-tls-webpki-roots",
]
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2"

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

[dev-dependencies.serial_test]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "test-util",
]

[dev-dependencies.tokio-test]
version = "0.4"

[profile.dev]
opt-level = 0

[profile.dist]
lto = "thin"
inherits = "release"

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true