hko 1.13.0

Rust library for Hong Kong Observatory Open Data API
Documentation
# 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 = "2024"
name = "hko"
version = "1.13.0"
authors = ["GreenYun <microsoft.zh.cn@gmail.com>"]
build = false
include = [
    "src/**/*.rs",
    "!**/test.rs",
    "README.md",
    "LICENSE",
]
autolib = false
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",
]
categories = [
    "api-bindings",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/GreenYun/hko-rust"

[package.metadata.docs.rs]
features = [
    "earthquake",
    "fetch",
    "hourly_rainfall",
    "lunardate",
    "opendata",
    "weather",
]

[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"]

[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 = "8"
optional = true

[dependencies.reqwest]
version = "0.13"
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.13"
features = ["json"]

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
]
default-features = false