typed_ident/lib.rs
1#![doc = include_str!("README.md")]
2// =============================================================================
3// CRATE CONFIG
4// =============================================================================
5
6// -----------------------------------------------------------------------------
7#![no_std]
8#![allow(clippy::module_inception)] // Common pattern for module organization.
9#![deny(rustdoc::broken_intra_doc_links)]
10#![deny(missing_docs)]
11
12// =============================================================================
13// CRATES
14// =============================================================================
15
16// -----------------------------------------------------------------------------
17#[cfg(feature = "alloc")]
18extern crate alloc as std_alloc;
19
20// =============================================================================
21// MODULES
22// =============================================================================
23
24// -----------------------------------------------------------------------------
25#[macro_use]
26mod macros;
27
28// -----------------------------------------------------------------------------
29#[cfg(feature = "alloc")]
30pub mod alloc;
31pub mod core;
32#[cfg(feature = "presets")]
33pub mod presets;
34pub mod syntax;
35
36// =============================================================================
37// RE-EXPORTS
38// =============================================================================
39
40// -----------------------------------------------------------------------------
41#[doc(inline)]
42#[cfg(feature = "alloc")]
43pub use alloc::{ConvertibleIdentifier, FragmentBuf, IdentBuf, StringSegment};
44#[doc(inline)]
45pub use core::{
46 Chunk, Error, FormattableIdentifier, Fragment, Ident, Identifier, Segment, StrSegment,
47};