Cargo Features
libp2p-swarm has no features set by default.
[dependencies]
libp2p-swarm = { version = "0.45.1", features = ["macros", "tokio", "async-std", "wasm-bindgen"] }
- macros
-
Enables libp2p-swarm-derive
Using
path
here because this is a cyclic dev-dependency which otherwise breaks releasing. - tokio
-
Enables tokio
- async-std
-
Enables async-std
- wasm-bindgen
-
Enables getrandom and wasm-bindgen-futures
getrandom:
Explicit dependency to be used in
wasm-bindgen
feature