1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
use proc_macro_hack::proc_macro_hack;

/// Generates a `&'static [u16]` from a string literal.
/// 
/// # Example
/// 
/// ```
/// assert_eq!(&wide_str!("Hello, World!"), &[72, 101, 108, 108, 111, 44, 32, 87, 111, 114, 108, 100, 33, 0]);
/// ```
#[proc_macro_hack]
pub use wide_str_impl::wide_str;