rustmod_core/lib.rs
1//! Modbus protocol encoding and framing in pure Rust.
2//!
3//! `rustmod-core` provides zero-copy, `no_std`-compatible encoding and decoding
4//! of Modbus PDUs and TCP/RTU frames.
5
6#![cfg_attr(not(feature = "std"), no_std)]
7#![forbid(unsafe_code)]
8
9#[cfg(feature = "alloc")]
10extern crate alloc;
11#[cfg(feature = "std")]
12extern crate std;
13
14pub mod encoding;
15pub mod error;
16pub mod frame;
17pub mod pdu;
18
19pub use error::{DecodeError, EncodeError};