contextfree / winrt-rust

Use and (eventually) make Windows Runtime APIs with Rust
Apache License 2.0
142 stars 10 forks source link

Find a way to have 16-bit string literals #30

Open Boddlnagg opened 7 years ago

Boddlnagg commented 7 years ago

Unfortunately all string literals passed to WinRT are stored in UTF8 and must first be converted to 16-bit. (wide string). This probably requires a Rust language feature (C++ has L"xxx" literals), but we might be able to do something with const fn, when they support allocation, which might come some time in the future.