hitokoto/
lib.rs

1#![doc = include_str!("../README.md")]
2#![cfg_attr(docsrs, feature(doc_cfg))]
3
4#![no_std]
5#![forbid(unsafe_code)]
6#![deny(missing_docs)]
7
8extern crate alloc;
9
10mod data;
11pub use data::{Hitokoto, HitokotoCommitFrom, HitokotoType};
12#[cfg(feature = "language")]
13pub use data::Language;
14
15mod bundles;
16pub use bundles::{bundled_version, get_all_hitokoto, get_hitokoto_by_id};
17pub mod bundled {
18    //! This is the bundled sentences from [sentences-bundle.hitokoto.cn](https://sentences-bundle.hitokoto.cn/).
19    pub use crate::bundles::HITOKOTO_A;
20    pub use crate::bundles::HITOKOTO_B;
21    pub use crate::bundles::HITOKOTO_C;
22    pub use crate::bundles::HITOKOTO_D;
23    pub use crate::bundles::HITOKOTO_E;
24    pub use crate::bundles::HITOKOTO_F;
25    pub use crate::bundles::HITOKOTO_G;
26    pub use crate::bundles::HITOKOTO_H;
27    pub use crate::bundles::HITOKOTO_I;
28    pub use crate::bundles::HITOKOTO_J;
29    pub use crate::bundles::HITOKOTO_K;
30    pub use crate::bundles::HITOKOTO_L;
31}
32
33#[cfg(feature = "random")]
34mod random;
35#[cfg(feature = "random")]
36pub use random::{random_hitokoto, random_hitokoto_option, HitokotoTypes};