{"id":70318,"library":"serial2","title":"Serial2","description":"Cross-platform serial port communication library.","status":"active","version":"0.2.34","language":"rust","source_language":null,"source_url":"https://github.com/de-vri-es/serial2-rs","tags":["serial","uart","communication","hardware"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nserial2 = \"0.2.34\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add serial2","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"SerialPort","correct":"use serial2::SerialPort;"}],"quickstart":{"code":"use serial2::SerialPort;\n\nfn main() -> Result<(), Box<dyn std::error::Error>> {\n    let port = SerialPort::open(\"/dev/ttyUSB0\", 115200)?;\n    port.write(b\"hello\")?;\n    Ok(())\n}","lang":"rust","description":"Open a serial port and write data."},"warnings":[{"fix":"Use the correct COM port name (e.g., \"COM1\") without extra prefixes.","message":"On Windows, port names must include the full path like \"COM1\".","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'communic':7,11 'cross':3 'cross-platform':2 'hardwar':12 'librari':8 'platform':4 'port':6 'serial':5,9 'serial2':1 'uart':10","created_at":"2026-06-17T18:12:40.477050+00:00","updated_at":"2026-06-17T18:12:40.477050+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/de-vri-es/serial2-rs","github":"https://github.com/de-vri-es/serial2-rs","docs":"https://docs.rs/serial2/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}