Expand description
Windows BLE from pure Rust, with no dependencies.
WinRT is COM, and COM is a calling convention: an object is a pointer to a
table of function pointers, and the runtime is a handful of exports from
combase.dll. So this needs no bindings crate — only the right interface
identifiers, which are vendored in iids from Windows metadata rather
than transcribed, and the right vtable layouts.
Callbacks work the way they do everywhere else here: Windows wants an object it can call into, so one is built — in this case a COM object, which is a struct whose first field is a vtable pointer.
§License
MIT — Copyright © 2025 Eugene Hauptmann
Modules§
- ble
- Calling WinRT’s Bluetooth APIs.
- com
- COM, by hand.
- guid
- GUIDs, and the one WinRT computes rather than publishes.
- iids
- WinRT interface identifiers, vendored from Windows metadata.
- peripheral_
backend - The Windows peripheral engine:
GattServiceProvider. - winrt
- Strings and activation — the two things
combase.dllis needed for.