zng_ext_l10n_proc_macros/
lib.rs

1#![doc(html_favicon_url = "https://raw.githubusercontent.com/zng-ui/zng/main/examples/image/res/zng-logo-icon.png")]
2#![doc(html_logo_url = "https://raw.githubusercontent.com/zng-ui/zng/main/examples/image/res/zng-logo.png")]
3//!
4//! Proc-macros for `zng-ext-l10n`.
5//!
6//! # Crate
7//!
8#![doc = include_str!(concat!("../", std::env!("CARGO_PKG_README")))]
9#![warn(unused_extern_crates)]
10#![warn(missing_docs)]
11
12use proc_macro::TokenStream;
13
14#[macro_use]
15mod util;
16
17mod l10n;
18mod lang;
19
20#[doc(hidden)]
21#[proc_macro]
22pub fn l10n(input: TokenStream) -> TokenStream {
23    l10n::expand(input)
24}
25
26#[doc(hidden)]
27#[proc_macro]
28pub fn lang(input: TokenStream) -> TokenStream {
29    lang::expand(input)
30}