libp2p / rust-libp2p

The Rust Implementation of the libp2p networking stack.
https://libp2p.io
MIT License
4.46k stars 927 forks source link

Make `libp2p::builder::phase::behaviour::BehaviourError` importable #4829

Open xDarksome opened 10 months ago

xDarksome commented 10 months ago

Description

Currently there's no way to import libp2p::builder::phase::behaviour::BehaviourError as it's inside a private module. But it's being exposed in a public interface

Motivation

No way to use it in user-code without boxing it (again)

Current Implementation

Not publicly exposed

Are you planning to do it yourself in a pull request ?

No

thomaseizinger commented 10 months ago

Similar to https://github.com/libp2p/rust-libp2p/issues/4824.

Was an oversight in the initial implementation, sorry! Happy to have to exposed in the top-level module. A PR would be much appreciated :)