1#![cfg_attr(not(feature = "std"), no_std)]
2#![cfg_attr(__unstable_doc, feature(doc_auto_cfg, doc_notable_trait))]
3
4extern crate alloc;
5pub use compact_str::{
8 CompactString as MiniStr, ToCompactString, format_compact as fmt_compact,
9};
10
11mod phf_tuple_key;
12pub use phf_tuple_key::PhfTupleKey;
13pub mod phf_triple_key;
14pub use phf_triple_key::PhfTripleKey;
15
16#[cfg(feature = "smallvec")]
17pub mod small_list;
18
19#[cfg(feature = "type-aliases")]
21mod aliases;
22
23#[cfg(feature = "type-aliases")]
24pub use aliases::type_aliases;
25#[cfg(feature = "type-aliases")]
27pub use glossa_dsl;
28#[cfg(feature = "type-aliases")]
29pub use lang_id;
30#[cfg(feature = "phf")]
32pub use phf;
33#[cfg(feature = "type-aliases")]
34pub use tap;
35
36#[cfg(feature = "phf")]
39pub type PhfL10nOrderedMap = phf::OrderedMap<PhfTupleKey<'static>, &'static str>;
40
41#[cfg(feature = "phf")]
42pub type PhfL10nAllInOneMap = phf::OrderedMap<PhfTripleKey<'static>, &'static str>;
43
44#[cfg(feature = "phf")]
45pub type PhfStrMap = phf::OrderedMap<&'static str, &'static str>;
46#[cfg(feature = "decode")]
49pub mod decode;
50
51#[cfg(all(feature = "decode", feature = "std"))]
52pub mod load_bincode;
53
54#[cfg(feature = "std")]
55pub mod display {
56 use core::fmt::Debug;
57
58 pub fn puts<T: core::fmt::Display>(msg: &T) {
60 println!("{msg}")
61 }
62
63 pub fn puts_dbg<T: Debug>(debug_msg: &T) {
68 println!("{debug_msg:?}")
69 }
70
71 pub fn eputs<T: core::fmt::Display>(msg: &T) {
73 eprintln!("{msg}")
74 }
75
76 pub fn eputs_dbg<T: Debug>(debug_msg: &T) {
78 eprintln!("{debug_msg:?}")
79 }
80}