mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-09 17:46:52 +00:00
This PR refactors the error reporting away from panicking to returning `syn::Result` and adds two unit tests for the parsing of attributes that users interact with. Pull-Request: #3922.
12 lines
179 B
Rust
12 lines
179 B
Rust
use libp2p_ping as ping;
|
|
|
|
#[derive(libp2p_swarm::NetworkBehaviour)]
|
|
#[behaviour(prelude = libp2p_swarm::derive_prelude)]
|
|
struct Foo {
|
|
ping: ping::Behaviour,
|
|
}
|
|
|
|
fn main() {
|
|
|
|
}
|