wolffserial

Crates.iowolffserial
lib.rswolffserial
version0.2.1
sourcesrc
created_at2022-07-02 23:27:12.990592
updated_at2022-07-07 21:12:05.36323
descriptionSimple cli tool for listing and watching serial ports
homepage
repositoryhttps://github.com/wolffshots/wolffserial-rs
max_upload_size
id618032
size18,598
(wolffshots)

documentation

README

wolffserial-rs

GitHub Build_Win GitHub Build_Ubuntu License GitHub code size in bytes GitHub repo size Lines of code GitHub tag (latest by date)

a lil helper program for reading from a serial port and listing available serial ports

building and developing

windows

as long as you have cargo on the path you should be able to build with cargo build or run with cargo run

linux

you may need to install libudev-dev and pkg-config to build the package properly on ubuntu this would most likely be done with:

# apt install libudev-dev pkg-config

running the binary

the binary needs to be run from a terminal with a subcommand to tell it what to do. the available options and commands can be displayed by running with the help subcommand or --help flag and this can be used to see help for a specific command as well (such as ./wolffserial help watch to see the help for the watch subcommand)

below is an example output from running ./wolffserial help and from this you can see the functions of the subcommands

Recieve input from a serial device 
Reads data from a serial port and echoes it to stdout

USAGE:
    wolffserial [SUBCOMMAND]

FLAGS:
    -h, --help    Prints help information

SUBCOMMANDS:
    help     Prints this message or the help of the given subcommand(s)
    list     Lists available devices
    watch    Watch a specific device

todo

  • rebrand with generalised utility
  • timeout to retry on disconnect
  • add initial example tests
Commit count: 30

cargo fmt