# 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.8" authors = ["GreenYun "] build = false include = [ "src/**/*.rs", "!**/test.rs", "README.md", "LICENSE", ] autobins = false autoexamples = false autotests = false autobenches = false 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", ] [lib] name = "hko" path = "src/lib.rs" [dependencies.anyhow] version = "1" optional = true [dependencies.chrono] version = "0.4" features = [ "alloc", "serde", ] default-features = false [dependencies.chrono-tz] version = "0.10" [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 = [ "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"]