#multi-byte #unicode #windows-ansi #windows #windy

macro windy-macros

Macros to convert a UTF-8 string to WString or AString at compile time

3 unstable releases

Uses new Rust 2024

0.2.0 Feb 27, 2026
0.1.1 Jan 12, 2021
0.1.0 Jan 10, 2021

#6 in #multi-byte

MIT/Apache

23KB
470 lines

Windy-macros

crates.io docs.rs

Macros for Windy.

Features

Converts UTF-8 &str to:

  • WString using wstring! or wstring_lossy!.
  • AString using astring! or astring_lossy!.
  • &WStr using wstr! or wstr_lossy!.
  • &AStr using astr! or astr_lossy!.
  • [u8] using aarr! or aarr_lossy!.
  • [u16] using warr! or warr_lossy!.

at compile time.

Example

use windy::macros::wstring;

fn main() {
    let x = wstring!("test");
}

License

This software is released under the MIT or Apache-2.0 License, see LICENSE-MIT or LICENSE-APACHE.

Dependencies

~160–510KB
~12K SLoC