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