opcua-kit 0.0.1

OPC UA utilities for Rust, starting with StatusCode severity classification
Documentation
  • Coverage
  • 100%
    6 out of 6 items documented2 out of 3 items with examples
  • Size
  • Source code size: 15.9 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 67.6 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • hupe1980

opcua-kit

An early-stage Rust toolkit for OPC Unified Architecture (OPC UA). The initial release provides one small, dependency-free utility for interpreting the severity of a raw OPC UA status code. It supports no_std. Client and server functionality are outside the scope of this release.

use opcua_kit::{Severity, status_severity};

assert_eq!(status_severity(0x80AB_0000), Severity::Bad); // BadInvalidArgument

The severity occupies the two highest bits. The function treats the reserved bit pattern as bad, following the guidance for OPC UA clients. Keep the original code for diagnostics and data-quality flags. OPC UA Part 4, StatusCode

Dual-licensed under MIT or Apache-2.0.