Skip to main content

token_goblin_runtime/
lib.rs

1//! Runtime support for code generated by `token-goblin` munch.
2//!
3//! The `prelude` module provides interface for `charms` generated by `token-goblin`.
4//! Most users meet it as the quiet pouch of imports packed into generated charms.
5
6pub mod ux;
7mod wire;
8
9/// Prelude for generated code and the small spellbook each charm expects.
10pub mod prelude {
11
12    pub use proc_macro2::*;
13    pub use quote::*;
14    pub use std::str::FromStr;
15    pub use syn;
16
17    pub use crate::ux::{CommaSeparated, SnifedEntries, SnifedEntry, Token};
18    // aliases for those who don't want "goblin" styled names.
19    #[doc(hidden)]
20    pub use crate::ux::{SnifedEntries as SniffedEntries, SnifedEntry as SniffedEntry};
21    pub use crate::{output, output_str};
22}
23pub use ux::{IntoTokenStream, TokenStreamInto};
24
25
26#[doc(hidden)]
27pub use wire::{Output, entry};