6 releases (breaking)
| 0.18.0 | Feb 24, 2026 |
|---|---|
| 0.17.1 | Dec 10, 2025 |
| 0.16.0 | Jul 11, 2025 |
| 0.15.1 | Apr 23, 2025 |
| 0.14.0 | Jan 23, 2025 |
#18 in #ua
12,110 downloads per month
Used in 10 crates
(3 directly)
82KB
2K
SLoC
Async OPC-UA Macros
Part of async-opcua, a general purpose OPC-UA library in rust.
This defines a number of utility macros for encoding, decoding, and defining types to help write server and client software.
Currently defines:
Event, a macro for deriving theEventtrait on custom event types.EventField, a macro for deriving theEventFieldtrait, used for types that can be part of OPC-UA events.FromXml, with the"xml"feature. Derives conversion from XML objects inNodeSet2files.JsonEncodable, with the"json"feature. Derives streaming serialization using OPC-UA JSON.JsonDecodable, with the"json"feature. Derives streaming deserialization using OPC-UA JSON.BinaryEncodable, derives streaming serialization using OPC-UA Binary.BinaryDecodable, derives streaming deserialization using OPC-UA Binary.UaEnum, derives theUaEnumand a few other traits to make it easier to define custom OPC-UA enums.
Features
json, adds theJsonEncodableandJsonDecodablemacros.xml, adds theFromXmlmacro.
Dependencies
~0.9–1.4MB
~25K SLoC