Update soketto and enable deflate extension. (#1169)

* Update soketto and enable deflate extension.

* libp2p-deflate and libp2p-websocket share flate2.

Due to the way feature resolution works in cargo today, the `deflate`
feature of `soketto` will include `flate2` with feature `zlib` which is
then also active for the `flate2` that `libp2p-deflate` depends on. This
leads to compilation failures for WASM targets. This PR therefore moves
libp2p-deflate to the crates which are not available on WASM.
This commit is contained in:
Toralf Wittner
2019-06-20 13:03:35 +02:00
committed by Pierre Krieger
parent 3b4f8d7094
commit acebab07f3
5 changed files with 46 additions and 12 deletions

View File

@ -163,6 +163,7 @@ pub use tokio_codec;
#[doc(inline)]
pub use libp2p_core as core;
#[cfg(not(any(target_os = "emscripten", target_os = "unknown")))]
#[doc(inline)]
pub use libp2p_deflate as deflate;
#[cfg(not(any(target_os = "emscripten", target_os = "unknown")))]