mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-13 01:51:23 +00:00
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:
committed by
Pierre Krieger
parent
3b4f8d7094
commit
acebab07f3
@ -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")))]
|
||||
|
Reference in New Issue
Block a user