1 unstable release
new 0.14.0 | Jan 23, 2025 |
---|
#1849 in Embedded development
117 downloads per month
Used in 8 crates
(3 directly)
52KB
1.5K
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 theEvent
trait on custom event types.EventField
, a macro for deriving theEventField
trait, used for types that can be part of OPC-UA events.FromXml
, with the"xml"
feature. Derives conversion from XML objects inNodeSet2
files.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 theUaEnum
and a few other traits to make it easier to define custom OPC-UA enums.
Features
"json"
, adds theJsonEncodable
andJsonDecodable
macros."xml"
, adds theFromXml
macro.
Dependencies
~1–1.6MB
~29K SLoC