#studio #serial #data-source #act #server

serialstudio

A simple Rust library to act as a data source for Serial Studio

2 releases

0.1.1 Apr 23, 2021
0.1.0 Apr 22, 2021

#6 in #act

Custom license

17KB
214 lines

Serial Studio for Rust

Crates.io Documentation Build

This is a very simple Rust library to act as a data source for Serial Studio.

What is provided?

This crate provides a simple threaded TCP server for use with Serial Studio. As of now, only one connection can be handled at a time, per port.


lib.rs:

A basic server implementation for Serial Studio

Basic usage

use serialstudio::SerialStudioSource;

// Create server
let mut server = SerialStudioSource::new();

// Start
server.start("localhost:8019".to_string());

loop {
    // Do stuff 
    // ...
}

// Stop
server.stop();

Dependencies

~0.6–1.4MB
~32K SLoC