ANSSI-FR/lidi ? reverse-engineered prompt
Reverse engineered prompt
Build me a Rust tool that can copy data from one side to the other over a one way link, like a data diode setup. It should be able to send a raw TCP stream, a Unix socket stream, or a file, and keep working as well as possible even when packets get lost by using forward error correction.
I want it to feel like a practical command line utility, something I can run for testing with a normal network too, not just special hardware. Please include clear usage help, sensible defaults, and simple docs so I can understand how to send and receive data. If there are any tricky details around streaming, buffering, or recovering from errors, handle those cleanly. If you need to check current Rust or crate docs online while building it, go ahead.
Are you gonna build this?
make sure you review the code using coderabbit