spade-serial

Crates.iospade-serial
lib.rsspade-serial
version0.1.1
created_at2024-12-08 00:09:04.909081+00
updated_at2025-01-05 03:42:16.479486+00
descriptionCommunications with Sprig devices over serial port
homepage
repositoryhttps://github.com/MacaylaMarvelous81/spade-upload
max_upload_size
id1475957
size14,777
Jomar Milan (MacaylaMarvelous81)

documentation

README

spade-serial

Rust crate to communicate with devices running Spade, like the Sprig console. It interacts with Read + Writers, like those provided by the serialport crate.
This crate can test whether the device is running a legacy Spade version and upload games.

Testing

This crate uses a mock serial device for unit testing which emulates the expected behavior of the device. Doc tests and integration tests test with actual devices. The environment variable TEST_DEVICE should be set to the device to use. For example:

TEST_DEVICE=/dev/cu.usbmodem14101 cargo test
Commit count: 11

cargo fmt