[package]
edition = "2021"
rust-version = "1.75"
name = "wickra-data"
version = "0.1.2"
authors = ["Wickra Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Data sources for Wickra: CSV readers, tick-to-candle aggregator, and live exchange feeds."
homepage = "https://github.com/kingchenc/wickra"
readme = "README.md"
keywords = [
"finance",
"trading",
"indicators",
"technical-analysis",
"ta",
]
categories = [
"finance",
"mathematics",
"science",
]
license = "PolyForm-Noncommercial-1.0.0"
repository = "https://github.com/kingchenc/wickra"
[features]
default = []
live-binance = [
"dep:tokio",
"dep:tokio-tungstenite",
"dep:futures-util",
"dep:url",
]
[lib]
name = "wickra_data"
path = "src/lib.rs"
[[example]]
name = "live_binance"
path = "examples/live_binance.rs"
required-features = ["live-binance"]
[dependencies.csv]
version = "1.3"
[dependencies.futures-util]
version = "0.3"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"macros",
"net",
"time",
"io-util",
]
optional = true
[dependencies.tokio-tungstenite]
version = "0.24"
features = ["native-tls"]
optional = true
[dependencies.url]
version = "2"
optional = true
[dependencies.wickra-core]
version = "0.1.2"
[dev-dependencies.approx]
version = "0.5"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
]
[lints.clippy]
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
float_cmp = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
similar_names = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_must_use = "deny"