glossa_shared/
lib.rs

1#![cfg_attr(not(feature = "std"), no_std)]
2#![cfg_attr(__unstable_doc, feature(doc_auto_cfg, doc_notable_trait))]
3
4extern crate alloc;
5// -----
6
7pub 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// -----
20mod aliases;
21
22#[cfg(feature = "type-aliases")]
23pub use aliases::type_aliases;
24// -----
25#[cfg(feature = "type-aliases")]
26pub use glossa_dsl;
27#[cfg(feature = "type-aliases")]
28pub use lang_id;
29// -----
30#[cfg(feature = "phf")]
31pub use phf;
32#[cfg(feature = "type-aliases")]
33pub use tap;
34
35// -----
36
37#[cfg(feature = "phf")]
38pub type PhfL10nOrderedMap = phf::OrderedMap<PhfTupleKey<'static>, &'static str>;
39
40#[cfg(feature = "phf")]
41pub type PhfL10nAllInOneMap = phf::OrderedMap<PhfTripleKey<'static>, &'static str>;
42// -----
43
44#[cfg(feature = "decode")]
45pub mod decode;