Put secio behind a feature flag in the facade (#219)

* Put secio behind a feature flag in the facade

* Define the features required by examples

* Test both with and without Cargo features
This commit is contained in:
Pierre Krieger
2018-05-24 16:24:20 +02:00
committed by GitHub
parent 89087f021d
commit c7f654a815
3 changed files with 36 additions and 4 deletions

View File

@ -36,7 +36,7 @@ pub extern crate libp2p_peerstore as peerstore;
pub extern crate libp2p_ping as ping;
pub extern crate libp2p_ratelimit as ratelimit;
pub extern crate libp2p_relay as relay;
#[cfg(not(target_os = "emscripten"))]
#[cfg(all(not(target_os = "emscripten"), feature = "libp2p-secio"))]
pub extern crate libp2p_secio as secio;
#[cfg(not(target_os = "emscripten"))]
pub extern crate libp2p_tcp_transport as tcp;