#com #winapi #api-bindings #windows

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

#205 in Windows APIs

Download history 179/week @ 2024-02-29 203/week @ 2024-03-07 137/week @ 2024-03-14 126/week @ 2024-03-21 211/week @ 2024-03-28 150/week @ 2024-04-04 182/week @ 2024-04-11 216/week @ 2024-04-18 342/week @ 2024-04-25 511/week @ 2024-05-02 360/week @ 2024-05-09 414/week @ 2024-05-16 312/week @ 2024-05-23 258/week @ 2024-05-30 182/week @ 2024-06-06 448/week @ 2024-06-13

1,316 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:

#
#
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

~32–435KB