akshare 0.1.9

100% pure Rust implementation of akshare — unified access to Chinese and global financial market data APIs
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"
rust-version = "1.88"
name = "akshare"
version = "0.1.9"
build = false
exclude = [
    "/tests",
    "/.github",
    "/.gitignore",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "100% pure Rust implementation of akshare — unified access to Chinese and global financial market data APIs"
homepage = "https://github.com/Cricle/akshare-rs"
documentation = "https://docs.rs/akshare"
readme = "README.md"
keywords = [
    "akshare",
    "finance",
    "stock",
    "china",
    "market-data",
]
categories = [
    "api-bindings",
    "finance",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Cricle/akshare-rs"
resolver = "2"

[features]
all = [
    "equity",
    "derivatives",
    "funds",
    "macro",
    "fx-commodity",
    "misc",
    "market-client",
]
default = ["all"]
derivatives = [
    "mod-futures",
    "mod-option",
]
equity = [
    "mod-stock",
    "mod-index",
]
funds = [
    "mod-fund",
    "mod-bond",
    "mod-reits",
]
fx-commodity = [
    "mod-forex",
    "mod-crypto",
    "mod-commodity",
    "mod-spot",
]
macro = [
    "mod-macro_data",
    "mod-economy",
]
market-client = [
    "dep:reqwest-middleware",
    "dep:reqwest-tracing",
    "dep:opentelemetry",
    "dep:tracing",
    "dep:futures",
    "dep:anyhow",
    "tokio/macros",
]
misc = [
    "mod-news",
    "mod-bank",
    "mod-cal",
    "mod-ta",
    "mod-tool",
]
mod-bank = []
mod-bond = []
mod-cal = []
mod-commodity = []
mod-crypto = []
mod-economy = []
mod-forex = []
mod-fund = []
mod-futures = []
mod-index = []
mod-macro_data = []
mod-news = []
mod-option = []
mod-reits = []
mod-spot = []
mod-stock = []
mod-ta = []
mod-tool = []

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

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

[dependencies.calamine]
version = "0.26"

[dependencies.chrono]
version = "0.4"

[dependencies.futures]
version = "0.3"
optional = true

[dependencies.opentelemetry]
version = "0.28"
optional = true

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[dependencies.reqwest-middleware]
version = "0.4"
features = ["json"]
optional = true

[dependencies.reqwest-tracing]
version = "0.5"
features = ["opentelemetry_0_28"]
optional = true

[dependencies.rust_decimal]
version = "1"
features = ["serde-with-str"]

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

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

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

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

[dev-dependencies.wiremock]
version = "0.6"

[lints.rust]
unsafe_code = "forbid"