Registry / networking / serial2

serial2

JSON →
library0.2.34rscratesunverified

Cross-platform serial port communication library.

# Cargo.toml [dependencies] serial2 = "0.2.34"
INSTALL
IMPORT
SIG · SERIAL2
S
serial2
networkingrustv0.2.34
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SerialPort
use serial2::SerialPort;

Open a serial port and write data.

use serial2::SerialPort; fn main() -> Result<(), Box<dyn std::error::Error>> { let port = SerialPort::open("/dev/ttyUSB0", 115200)?; port.write(b"hello")?; Ok(()) }
Debug
Known issues
gotchaOn Windows, port names must include the full path like "COM1".
fix
Use the correct COM port name (e.g., "COM1") without extra prefixes.
affects: >=0.1.0
Upgrade
Version history
0.2.34latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
OpenAI (training)
1
Resources
serial2 — cargo add serial2 · libregistry