usbd-serial
CDC-ACM USB serial port implementation for usb-device.
CDC-ACM is a USB class that's supported out of the box by most operating systems and used for implementing modems and generic serial ports. The SerialPort class implements a stream-like buffered serial port that can be used similarly to a normal UART.
The crate also contains CdcAcmClass which is a lower-level implementation that has less overhead, but requires more care to use correctly.
Example
A full example requires the use of a hardware-driver, but the hardware independent part is as follows:
let mut serial = new;
let mut usb_dev = new
.product
.device_class
.build;
loop