Cargo Features

[dependencies]
hko = { version = "1.12.0", default-features = false, features = ["earthquake", "fetch", "hourly_rainfall", "lunardate", "opendata", "weather", "test"] }
default = earthquake, hourly_rainfall, lunardate, opendata, weather

These default features are set whenever hko is added without default-features = false somewhere in the dependency tree.

earthquake default

Affects hko::earthquake

fetch

Enables anyhow, serde_json, json of reqwest

Affects fetch::Fetch, fetch::fetch, fetch::fetch_with_client, hourly_rainfall::fetch, lunardate::fetch, hhot::fetch, hlt::fetch, lhl::fetch

hourly_rainfall default

Affects deserialize::deserialize_to_rainfall_value, hko::hourly_rainfall

lunardate default

Affects hko::lunardate

opendata default

Enables csv, nom, and serde_json

Affects hko::opendata

weather default

Enables serde_repr

Affects deserialize::deserialize_to_bool, deserialize::deserialize_yyyymmdd_to_date, deserialize::deserialize_to_psr, hko::weather

test

Enables serde_json