utf16_lit
Lets you change a standard Rust string literal (utf8) into a utf16 value at compile time.
This crate doesn't use syn
or quote
, so it builds very fast.
Stability: Not Really
Currently, "function-like" proc-macros are not so great in rust. They must only be used in "item position" (at the top level of a module), not in "statement position" (a line of their own within a block of code) or "expression position" (as a sub-portion of an expression within a statement). This makes the current usage of the proc-macro quite poor.
Once function-like proc-macros are available in expression position, the library will be updated so that the usage produces an expression. This will be a completely breaking change.
// Currently the usage is like this:
utf16_lit!;
// our goal usage is something like this
pub const EXAMPLE: & = utf16_lit!;
// and also things like this should be possible
Tracking Issues of Note: