[package]
edition = "2021"
name = "cg-common"
version = "0.2.1"
authors = ["Developer"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared library for CoinGecko CLI tools - HTTP client with rate limiting, retry logic, symbol resolution, and output writers"
readme = "README.md"
keywords = [
"cryptocurrency",
"coingecko",
"rate-limiting",
"http-client",
]
categories = [
"web-programming::http-client",
"finance",
]
license = "MIT"
[features]
csv = []
default = []
[lib]
name = "cg_common"
path = "src/lib.rs"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.governor]
version = "0.10"
[dependencies.rand]
version = "0.8"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"cookies",
]
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.44"
features = ["full"]
[dependencies.tracing]
version = "0.1"
[dev-dependencies.tempfile]
version = "3.16"
[dev-dependencies.tokio]
version = "1.44"
features = [
"full",
"test-util",
"macros",
"rt-multi-thread",
]