fmp-rust-sdk 0.1.1

Async Rust SDK for Financial Modeling Prep with typed data, subscription awareness, and WebSocket feeds
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 = "fmp-rust-sdk"
version = "0.1.1"
build = false
include = [
    "src/**",
    "examples/**",
    "tests/**",
    ".env.example",
    "Cargo.toml",
    "Cargo.lock",
    "README.md",
    "LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async Rust SDK for Financial Modeling Prep with typed data, subscription awareness, and WebSocket feeds"
documentation = "https://docs.rs/fmp-rust-sdk"
readme = "README.md"
keywords = [
    "fmp",
    "finance",
    "stocks",
    "api",
    "websocket",
]
categories = [
    "api-bindings",
    "finance",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/ozoneio/fmp-rust-sdk"

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

[features]
default = []
websocket = [
    "dep:futures-util",
    "dep:tokio-tungstenite",
]

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

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

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

[[example]]
name = "websocket"
path = "examples/websocket.rs"
required-features = ["websocket"]

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

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

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

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

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

[dependencies.chrono]
version = "0.4.42"
features = [
    "serde",
    "std",
]
default-features = false

[dependencies.dotenvy]
version = "0.15.7"

[dependencies.futures-util]
version = "0.3.31"
features = [
    "sink",
    "std",
]
optional = true
default-features = false

[dependencies.httpdate]
version = "1.0.3"

[dependencies.reqwest]
version = "0.13.5"
features = [
    "rustls",
    "query",
]
default-features = false

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

[dependencies.serde_json]
version = "1.0.145"

[dependencies.thiserror]
version = "2.0.21"

[dependencies.tokio]
version = "1.53.2"
features = [
    "time",
    "net",
    "rt",
    "macros",
]

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

[dependencies.tracing]
version = "0.1.41"

[dependencies.url]
version = "2.5.7"

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

[dev-dependencies.tokio]
version = "1.53.2"
features = [
    "rt-multi-thread",
    "io-util",
    "sync",
]

[lints.clippy]
all = "warn"

[lints.rust]
unsafe_code = "forbid"