ndn_face_serial/
lib.rs

1//! # ndn-face-serial — Serial port faces for NDN
2//!
3//! Provides NDN face transport over serial (UART) links, suitable for
4//! embedded and IoT deployments.
5//!
6//! ## Key types
7//!
8//! - [`SerialFace`] — a `StreamFace` alias for serial port transport
9//! - [`serial_face_open()`] — opens a serial port as an NDN face (requires the `serial` feature)
10//! - [`cobs::CobsCodec`] — COBS (Consistent Overhead Byte Stuffing) framing codec
11//!
12//! ## Features
13//!
14//! - **`serial`** (default) — enables hardware serial port support via `tokio-serial`.
15
16#![allow(missing_docs)]
17
18pub mod cobs;
19pub mod serial;
20
21pub use serial::SerialFace;
22#[cfg(feature = "serial")]
23pub use serial::serial_face_open;