schwab 0.6.0

Unofficial Rust client library for the Schwab API, unaffiliated with Schwab brokerage or thinkorswim
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.96"
name = "schwab"
version = "0.6.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unofficial Rust client library for the Schwab API, unaffiliated with Schwab brokerage or thinkorswim"
homepage = "https://github.com/major/schwab-rs"
readme = "README.md"
keywords = [
    "schwab",
    "trading",
    "finance",
    "api-client",
]
categories = [
    "api-bindings",
    "finance",
]
license = "Apache-2.0"
repository = "https://github.com/major/schwab-rs"

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

[features]
cli = [
    "dep:clap",
    "dep:clap_complete",
    "dep:dirs",
    "dep:open",
    "dep:sha2",
    "dep:tracing-subscriber",
]
decimal = ["dep:rust_decimal"]
default = ["cli"]
test_online = []

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

[[bin]]
name = "schwab-agent"
path = "src/bin/schwab-agent/main.rs"
required-features = ["cli"]

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

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

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

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

[dependencies.base64]
version = "0.22.1"

[dependencies.clap]
version = "4.6.1"
features = [
    "derive",
    "env",
]
optional = true

[dependencies.clap_complete]
version = "4.6.3"
optional = true

[dependencies.dirs]
version = "6.0.0"
optional = true

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

[dependencies.open]
version = "5.3.5"
optional = true

[dependencies.rand]
version = "0.10.1"

[dependencies.rcgen]
version = "0.14.8"

[dependencies.reqwest]
version = "0.13.3"
features = [
    "form",
    "json",
    "query",
    "rustls",
]
default-features = false

[dependencies.rust_decimal]
version = "1.42"
features = ["serde-with-float"]
optional = true

[dependencies.rustls]
version = "0.23.40"
features = [
    "ring",
    "std",
]
default-features = false

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

[dependencies.serde_json]
version = "1.0.149"
features = ["preserve_order"]

[dependencies.serde_with]
version = "3.20.0"

[dependencies.sha2]
version = "0.11"
optional = true

[dependencies.thiserror]
version = "2.0.18"

[dependencies.time]
version = "0.3.47"
features = [
    "formatting",
    "parsing",
]

[dependencies.tokio]
version = "1.52.3"
features = [
    "macros",
    "rt",
    "rt-multi-thread",
    "sync",
    "time",
]

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

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3.23"
features = [
    "env-filter",
    "fmt",
]
optional = true

[dependencies.urlencoding]
version = "2.1.3"

[dev-dependencies.assert-json-diff]
version = "2"

[dev-dependencies.assert_cmd]
version = "=2.2.2"

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

[dev-dependencies.predicates]
version = "=3.1.4"

[dev-dependencies.tempfile]
version = "=3.27.0"

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

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(coverage_nightly)"]

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