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

#130 in Windows APIs

Download history 107/week @ 2023-12-18 48/week @ 2023-12-25 117/week @ 2024-01-01 133/week @ 2024-01-08 175/week @ 2024-01-15 193/week @ 2024-01-22 191/week @ 2024-01-29 175/week @ 2024-02-05 158/week @ 2024-02-12 250/week @ 2024-02-19 208/week @ 2024-02-26 201/week @ 2024-03-04 170/week @ 2024-03-11 106/week @ 2024-03-18 184/week @ 2024-03-25 259/week @ 2024-04-01

734 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–440KB