1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
// Copyright (c) 2021 - 2023 GreenYun Organization
// SPDX-License-Identifier: MIT
#![allow(unused_macros)]
//! This is a library for users to access Hong Kong Observatory Open Data API.
//!
//! Hong Kong Observatory Open Data API provides weather, earthquake
//! information, and other open data including climate information.
//!
//! This library provides interfaces to parse JSON-based response from the API,
//! returning Rust data types. To use them, refer the documentation of Mods,
//! Structs, Enums, Functions, as well as Macros.
//!
//! More details of the API, refer
//! [hko.gov.hk](https://www.weather.gov.hk/en/abouthko/opendata_intro.htm) (or
//! [中文](https://www.weather.gov.hk/tc/abouthko/opendata_intro.htm)).
pub use self::fetch::API;
#[cfg(feature = "fetch")]
pub use self::fetch::{fetch, Fetch};
#[macro_use]
mod r#macro;
mod fetch;
mod internal;
pub mod common;
#[doc(hidden)]
pub mod error;
#[cfg(feature = "earthquake")]
pub mod earthquake;
#[cfg(feature = "hourly_rainfall")]
pub mod hourly_rainfall;
#[cfg(feature = "lunardate")]
pub mod lunardate;
#[cfg(feature = "opendata")]
pub mod opendata;
#[cfg(feature = "weather")]
pub mod weather;