#windows #com #win32

guid_win

Windows GUID/CLSID/IID string and binary serialization

4 releases

Uses old Rust 2015

0.2.0 Dec 17, 2020
0.1.0 Mar 21, 2019
0.1.0-alpha3 Mar 5, 2019
0.1.0-alpha2 Mar 3, 2019
0.1.0-alpha1 Mar 2, 2019

#110 in Windows APIs

Download history 259/week @ 2023-02-03 255/week @ 2023-02-10 318/week @ 2023-02-17 266/week @ 2023-02-24 280/week @ 2023-03-03 353/week @ 2023-03-10 294/week @ 2023-03-17 282/week @ 2023-03-24 298/week @ 2023-03-31 251/week @ 2023-04-07 307/week @ 2023-04-14 279/week @ 2023-04-21 290/week @ 2023-04-28 327/week @ 2023-05-05 317/week @ 2023-05-12 199/week @ 2023-05-19

1,174 downloads per month

MIT/Apache

8KB
117 lines

Windows GUID/CLSID/IID string and binary serialization

Guid transparently wraps GUID.

Implements Display and FromStr string conversion, also Hash and Eq.

Curly braces ({}) are optional for FromStr.

serde

Use the guid_serde feature to derive Serialize and Deserialize, you can then derive them for structs containing GUID like so:

# fn main() {}
#
# #[cfg(feature = "guid_serde")]
# extern crate serde_derive;
# extern crate winapi;
#
# #[cfg(feature = "guid_serde")]
# mod test {
use guid_win::GUIDSerde;
use serde_derive::{Deserialize, Serialize};
use winapi::shared::guiddef::GUID;

#[derive(Serialize, Deserialize)]
struct SerdeTest {
    #[serde(with = "GUIDSerde")]
    guid: GUID,
}
# }

Dependencies

~31–255KB