cat-dev-serial
A library used for interacting with CAT-DEV
(also sometimes referred to as the "cat-dev bridge") serial port. This is effectively a port of:
https://github.com/de-vri-es/serial2-tokio-rs at commit
65ff229f65c27c57e261f94dc6cc9a761cce9b21.
You can see the dual apache/bsd licenses for the original implementation at.: https://raw.githubusercontent.com/de-vri-es/serial2-tokio-rs/65ff229f65c27c57e261f94dc6cc9a761cce9b21/LICENSE-APACHE https://raw.githubusercontent.com/de-vri-es/serial2-tokio-rs/65ff229f65c27c57e261f94dc6cc9a761cce9b21/LICENSE-BSD
It has been updated to fit better into sprig's ecosystem (e.g. using windows
over winapi), and removing methods/etc. that would never work on a cat-dev.
Stability
This crate is currently pre-1.0. We will do our best to minimize breaking changes to the library, but there is still many parts of the cat-dev we have not fully figured out. As such we're very hesitant to make any promises about the stability of these APIs, or that we'll follow SEM-VER until we've at the very least figured all of that out. If you are ever affected by this, or concerned about this please reach out on our codeberg repository. We do want to try, and make it as smooth as possible.
Usage
Basic uses of this crate may look like the following:
Listing all Serial Ports:
use SyncSerialPort;
use error;
let ports = match available_ports ;
if ports.is_empty
for port in ports
Reading Lines from a Serial Port:
use ;
async