This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling winrt v0.1.0 (file:///D:/Code/Rust/winrt-rust) | |
time: 3.015; rss: 510MB parsing | |
time: 0.000; rss: 511MB recursion limit | |
time: 0.000; rss: 511MB crate injection | |
time: 0.000; rss: 511MB plugin loading | |
time: 0.000; rss: 511MB plugin registration | |
time: 12.359; rss: 782MB expansion | |
time: 0.000; rss: 782MB maybe building test harness | |
time: 0.131; rss: 783MB maybe creating a macro crate | |
time: 0.000; rss: 783MB checking for inline asm in case the target doesn't support it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use ::std::ptr; | |
use ::winapi::*; | |
use ::runtimeobject::*; | |
pub struct HString(HSTRING); | |
impl<'a> From<&'a str> for HString { | |
fn from(s: &'a str) -> Self { | |
let mut s16: Vec<_> = s.encode_utf16().collect(); | |
let len = s16.len(); |