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.
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 withconst fn
, when they support allocation, which might come some time in the future.