contextfree / winrt-rust

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

Specify [repr(transparent)] for various types #46

Closed Boddlnagg closed 5 years ago

Boddlnagg commented 6 years ago

When this feature is implemented and stabilized in rustc, we can (and should) use #[repr(transparent)] on various types, such as ComPtr and the various HSTRING wrappers.

Boddlnagg commented 6 years ago

Also Char (or alternatively change Char to be only a type alias).

Boddlnagg commented 5 years ago

This is now stable and we should use it.