MCPcopy Index your code
hub / github.com/dcuddeback/serial-rs

github.com/dcuddeback/serial-rs @v0.4.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.4.0 ↗ · + Follow
145 symbols 292 edges 14 files 10 documented · 7% updated 3y ago★ 21417 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Serial

The serial port crates provide Rust interfaces for working with serial ports. Serial ports are defined as traits to support extension through custom implementations.

NOTE: With the release of serial v0.4, the implementation is now split into several crates. While the new organization is still experimental, the serial crate reexports many of the types so that it's mostly backward-compatible with v0.3.

Usage

In Libraries

Libraries should link to serial-core.

In Executables

Executables should choose a serial port implementation. A cross platform implementation is provided in the serial crate.

Contributors

License

Copyright © 2015 David Cuddeback

Distributed under the MIT License.

Extension points exported contracts — how you extend this code

SerialPortSettings (Interface)
A trait for objects that implement serial port configurations. [3 implementers]
serial-core/src/lib.rs
SerialDevice (Interface)
A trait for implementing serial devices. This trait is meant to be used to implement new serial port devices. To use a [2 …
serial-core/src/lib.rs
SerialPort (Interface)
A trait for serial port devices. Serial port input and output is implemented through the `std::io::Read` and `std::io:: [1 …
serial-core/src/lib.rs

Core symbols most depended-on inside this repo

default_settings
called by 12
serial-unix/src/tty.rs
open
called by 9
serial/src/lib.rs
last_os_error
called by 9
serial-windows/src/error.rs
from_io_error
called by 7
serial-unix/src/error.rs
default_port_settings
called by 5
serial-core/src/lib.rs
escape_comm_function
called by 4
serial-windows/src/com.rs
read_pin
called by 4
serial-windows/src/com.rs
read_pin
called by 4
serial-unix/src/tty.rs

Shape

Method 85
Function 39
Class 12
Enum 6
Interface 3

Languages

Rust100%

Modules by API surface

serial-unix/src/tty.rs44 symbols
serial-core/src/lib.rs44 symbols
serial-windows/src/com.rs30 symbols
serial-unix/src/poll.rs6 symbols
serial-unix/src/error.rs6 symbols
serial-windows/src/ffi.rs5 symbols
serial-windows/src/error.rs3 symbols
serial/examples/read_write.rs2 symbols
serial/examples/probe_pins.rs2 symbols
serial/src/lib.rs1 symbols
serial/examples/open_port.rs1 symbols
serial-unix/examples/poll.rs1 symbols

For agents

$ claude mcp add serial-rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact