#asynchronous #tokio #telnet #mud #codec


A humble codec for converting a byte stream into TelnetEvents which other programs can use

1 unstable release

0.1.0 Jul 3, 2021

#6 in #mud

22 downloads per month
Used in mutelnet


135 lines


A bone-simple Telnet "codec" for use with Rust's Tokio-utils, written by The Mudcano Project.

Create a TelnetCodec, use it to wrap up your TcpStream or TlsStream, and have fun.

Note: The only way to implement MCCP2/3 using this Codec would be to wrap up the TcpStream/TlsStream in one that will handle the compression, and then stick THAT into this. You'd then be able to toggle compression on the wrapped stream on and off.


~39K SLoC