serial-thread

Crates.ioserial-thread
lib.rsserial-thread
version0.0.7
sourcesrc
created_at2024-03-14 07:47:04.767424
updated_at2024-03-23 00:35:54.959581
descriptionAsynchronous, multithreaded serial port communication library using mpsc::cjhannels or async-channels for efficient data handling.
homepage
repositoryhttps://github.com/pythcoiner/serial-thread-rust
max_upload_size
id1173099
size66,715
pythcoiner (pythcoiner)

documentation

https://docs.rs/serial-thread

README

Serial Async Multithread Library

serial-thread is a Rust library designed to facilitate serial port communication in a multithreaded environment. It leverages asynchronous/mpsc channels for efficient handling of serial data, suitable for applications that require concurrent processing of serial port input/output.

This lib is in early development stage, API not yet clearly defined and breaking changes will happen in upcoming releases.

Features

  • Asynchronous Communication: Utilizes std::sync::mpsc::chanels or async-channels (feature flag) for non-blocking serial port communication.
  • Multithreaded Support: Designed to work efficiently in a multithreaded context.
  • Custom Serial Configurations: Supports various configurations such as baud rate, character size, and flow control.
  • Error Handling: Comprehensive error handling for robust application development.

Installation

Add this to your Cargo.toml:

[dependencies]
serial-thread = "0.0.7"

or

cargo add serial_thread

Example

A usage example can be found in /src/example

Commit count: 20

cargo fmt