Deprecate mplex
module in libp2p
#3677
Labels
difficulty:easy
getting-started
Issues that can be tackled if you don't know the internals of libp2p very well
help wanted
priority:important
The changes needed are critical for libp2p, or are blocking another project
The recommended muxer (on top of single-stream transports like TCP) is yamux: https://github.com/libp2p/specs/blob/master/connections/README.md#interoperability
The API of our facade crate should represent the recommended modules that users should use. Currently, it still includes
mplex
but we don't recommend that anymore asyamux
is strictly better.To resolve this, we should mark the
mplex
module as#[deprecated]
and encourage users to depend on it separately in case they need it.This way, doing the "right" thing, (using yamux) is easy and the "wrong" thing (using mplex) is hard and annoying, which hopefully will discourage use. We don't want to make it impossible (yet) to use mplex to allow for legacy usecases.
The implementation should be done in a similar manner as #3580.
The text was updated successfully, but these errors were encountered: