lirays
Rust client for the LiRAYS SCADA WebSocket + Protobuf API.
- Crate: crates.io/crates/lirays
- Docs: docs.rs/lirays
Features
- Connect with or without authentication (
Authorization: Bearer <PAT>) - Namespace operations: list, create, delete, metadata edit
- Typed value operations: set/get for integer, float, text, and boolean
- Bulk namespace creation from JSON schema
- Realtime subscriptions for variable values
Installation
Quick Start
use ;
async
Connection Modes
Client::connect(host, port, tls)Client::connect_with_pat(host, port, tls, pat_token)Client::connect_with_options(ConnectionOptions)ConnectionOptions::with_insecure_tls(true)for local self-signed certs only
Examples
A full scenario runner is provided in examples/demo.
Run all scenarios:
Run one scenario:
See examples/demo/README.md for all options.
For local development with self-signed certs, you can opt in to insecure TLS validation:
Release
This repository includes a GitHub Actions release workflow that publishes to crates.io using Trusted Publishing (OIDC) when you push a tag like v0.1.2.
License
MIT (LICENSE).