2 unstable releases

new 0.15.1 Apr 23, 2025
0.15.0 Apr 23, 2025
0.14.0 Jan 23, 2025

#20 in #opc

Download history 120/week @ 2025-01-22 22/week @ 2025-01-29 32/week @ 2025-02-05 9/week @ 2025-02-12 21/week @ 2025-02-19 97/week @ 2025-02-26 174/week @ 2025-03-05 89/week @ 2025-03-12 54/week @ 2025-03-19 151/week @ 2025-03-26 234/week @ 2025-04-02 378/week @ 2025-04-09 164/week @ 2025-04-16

943 downloads per month
Used in 8 crates (3 directly)

MPL-2.0 license

81KB
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 the Event trait on custom event types.
  • EventField, a macro for deriving the EventField trait, used for types that can be part of OPC-UA events.
  • FromXml, with the "xml" feature. Derives conversion from XML objects in NodeSet2 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 the UaEnum and a few other traits to make it easier to define custom OPC-UA enums.

Features

  • json, adds the JsonEncodable and JsonDecodable macros.
  • xml, adds the FromXml macro.

Dependencies

~1–1.6MB
~29K SLoC