[package] authors = ["GreenYun "] description = "Rust library for Hong Kong Observatory Open Data API" documentation = "https://docs.rs/hko" edition = "2021" include = ["src/**/*.rs", "!**/test.rs", "README.md", "LICENSE"] keywords = ["weather", "hong-kong", "observatory", "opendata"] license = "MIT" name = "hko" readme = "README.md" repository = "https://github.com/GreenYun/hko-rust" version = "1.11.8" [features] default = ["earthquake", "hourly_rainfall", "lunardate", "opendata", "weather"] earthquake = [] fetch = ["dep:anyhow", "dep:reqwest", "reqwest?/json", "dep:serde_json"] hourly_rainfall = [] lunardate = [] opendata = ["dep:csv", "dep:nom", "dep:serde_json"] test = ["dep:serde_json"] weather = ["dep:serde_repr"] [dependencies] anyhow = {version = "1", optional = true} chrono = {version = "0.4", default-features = false, features = ["alloc", "serde"]} chrono-tz = "0.10" csv = {version = "1", optional = true} nom = {version = "7", optional = true} reqwest = {version = "0.12", optional = true, default-features = false} serde = {version = "1", features = ["derive"]} serde_json = {version = "1", optional = true} serde_repr = {version = "0.1", optional = true} strum = {version = ">=0.22", features = ["derive"]} [dev-dependencies] reqwest = {version = "0.12", features = ["rustls-tls", "json"]} tokio = {version = "1", default-features = false, features = ["macros", "rt"]} [package.metadata.docs.rs] features = ["earthquake", "fetch", "hourly_rainfall", "lunardate", "opendata", "weather"]