wstr-rs
Rust macros for compile-time UTF-16 (wide) string literals.
Usage
Add this in your Cargo.toml dependencies:
= "0.2"
Then add this in your crate root:
extern crate wstr;
If you need widestr! macro (for the WideStr string), also add a dependency to widestring crate and use widestring feature.
Now you are ready to use wstr!, wstrz!, and widestr! macro.
let wstr = wstr!; // &'static [u16], not null-terminated
let wstrz = wstrz!; // &'static [u16], null-terminated
extern crate widestring;
let widestr = widestr!; // &'static widestring::WideStr