Skip to main content

rusty_modbus_server/
lib.rs

1//! Async Modbus server with pluggable data store.
2//!
3//! Handles incoming requests, validates per spec state machines, and
4//! reads/writes from a configurable data store.
5
6#![forbid(unsafe_code)]
7#![warn(missing_docs, clippy::all, clippy::pedantic)]
8#![allow(clippy::needless_pass_by_value)] // API boundary types are intentionally consumed
9#![allow(clippy::missing_errors_doc)] // Error conditions documented at trait level
10
11pub mod config;
12mod device_id;
13pub mod error;
14mod file_record;
15pub mod handler;
16mod response_encode;
17pub mod server;
18pub mod store;
19
20pub use config::{DeviceIdentification, ServerConfig};
21pub use error::ServerError;
22pub use server::ModbusServer;
23pub use store::memory::{InMemoryStore, StoreConfig, StoreError};
24pub use store::{CommEventLog, CommEventLogMeta, DataStore};