[package]
edition = "2024"
name = "cbr-client"
version = "0.1.0"
authors = ["hexqnt <hexqntlab@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Strictly-typed, unofficial Rust client for downloading CBR data."
documentation = "https://docs.rs/cbr-client"
readme = "README.md"
keywords = [
"cbr",
"bank-of-russia",
"api-client",
"statistics",
"finance",
]
categories = [
"api-bindings",
"web-programming::http-client",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hexqnt/cbr-client"
[features]
blocking = ["reqwest/blocking"]
chrono = ["dep:chrono"]
default = []
[lib]
name = "cbr_client"
path = "src/lib.rs"
[[example]]
name = "async_client"
path = "examples/async_client.rs"
[[example]]
name = "blocking_client"
path = "examples/blocking_client.rs"
[[example]]
name = "usd_rub_time_series"
path = "examples/usd_rub_time_series.rs"
[[test]]
name = "client_mock"
path = "tests/client_mock.rs"
[[test]]
name = "input_types"
path = "tests/input_types.rs"
[[test]]
name = "query_builders"
path = "tests/query_builders.rs"
[[test]]
name = "strict_deserialization"
path = "tests/strict_deserialization.rs"
[[bench]]
name = "query_and_deser"
path = "benches/query_and_deser.rs"
harness = false
[dependencies.chrono]
version = "0.4"
features = ["std"]
optional = true
default-features = false
[dependencies.reqwest]
version = "0.13"
features = [
"json",
"query",
"rustls",
]
default-features = false
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.time]
version = "0.3"
features = [
"formatting",
"macros",
"parsing",
]
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.httpmock]
version = "0.8"
[dev-dependencies.serde_urlencoded]
version = "0.7"
[dev-dependencies.tokio]
version = "1.44"
features = [
"macros",
"rt-multi-thread",
]