Cargo Features
[dependencies]
hko = { version = "1.11.4", 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
somewhere in the dependency tree.default-features = false - earthquake default
-
Affects
hko::earthquake
… - fetch = anyhow, serde_json
-
Affects
fetch::Fetch
,fetch::fetch
,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 = csv, nom, serde_json
-
Affects
hko::opendata
… - weather default = serde_repr
-
Affects
deserialize::deserialize_to_bool
,deserialize::deserialize_yyyymmdd_to_date
,deserialize::deserialize_to_psr
,hko::weather
… - test = serde_json
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.