2 unstable releases

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

#21 in #opc

Download history 96/week @ 2025-01-18 33/week @ 2025-01-25 34/week @ 2025-02-01 13/week @ 2025-02-08 22/week @ 2025-02-15 29/week @ 2025-02-22 188/week @ 2025-03-01 107/week @ 2025-03-08 59/week @ 2025-03-15 159/week @ 2025-03-22 190/week @ 2025-03-29 188/week @ 2025-04-05 310/week @ 2025-04-12 541/week @ 2025-04-19 237/week @ 2025-04-26 275/week @ 2025-05-03

1,395 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.5MB
~29K SLoC