Async split of Reader and Writer for a SerialPort
⚓ Rust 📅 2026-07-08 👤 surdeus 👁️ 2I have a use case, where I need a serial port in a transmitter and a receiver thread (i.e. tokio task).
The transmitter part shall just send via the serial port and the receiver shall just receive from it.
Hence, I burnt last midnight's oil and came up with this:
Disclaimer: Parts of the code and the docs are AI-generated.
I'd like to have feedback on
- Code and documentation quality.
- Soundness of the implementation.
- Usefulness - Did I reinvent the wheel?
PS: This post was entirely hand-written, though. ![]()
2 posts - 2 participants
🏷️ Rust_feed