mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-22 07:31:20 +00:00
Fix secio compied with --no-default-features (#545)
This commit is contained in:
parent
276bc9c07a
commit
68632ce26b
@ -21,20 +21,20 @@ ctr = "0.1"
|
|||||||
lazy_static = { version = "0.2.11", optional = true }
|
lazy_static = { version = "0.2.11", optional = true }
|
||||||
rw-stream-sink = { path = "../../misc/rw-stream-sink" }
|
rw-stream-sink = { path = "../../misc/rw-stream-sink" }
|
||||||
tokio-io = "0.1.0"
|
tokio-io = "0.1.0"
|
||||||
untrusted = { version = "0.5", optional = true }
|
|
||||||
sha2 = "0.7.1"
|
sha2 = "0.7.1"
|
||||||
ed25519-dalek = "0.8.0"
|
ed25519-dalek = "0.8.0"
|
||||||
hmac = "0.6.3"
|
hmac = "0.6.3"
|
||||||
|
|
||||||
[target.'cfg(not(target_os = "emscripten"))'.dependencies]
|
[target.'cfg(not(target_os = "emscripten"))'.dependencies]
|
||||||
ring = { version = "0.12", default-features = false, optional = true }
|
ring = { version = "0.12", default-features = false }
|
||||||
|
untrusted = { version = "0.5" }
|
||||||
|
|
||||||
[target.'cfg(target_os = "emscripten")'.dependencies]
|
[target.'cfg(target_os = "emscripten")'.dependencies]
|
||||||
stdweb = { version = "0.4.8", default-features = false }
|
stdweb = { version = "0.4.8", default-features = false }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["rsa", "secp256k1"]
|
default = ["rsa", "secp256k1"]
|
||||||
rsa = ["ring/rsa_signing", "untrusted"]
|
rsa = ["ring/rsa_signing"]
|
||||||
secp256k1 = ["eth-secp256k1"]
|
secp256k1 = ["eth-secp256k1"]
|
||||||
aes-all = ["aesni", "lazy_static"]
|
aes-all = ["aesni", "lazy_static"]
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ extern crate libp2p_core;
|
|||||||
extern crate log;
|
extern crate log;
|
||||||
extern crate protobuf;
|
extern crate protobuf;
|
||||||
extern crate rand;
|
extern crate rand;
|
||||||
#[cfg(all(feature = "ring", not(target_os = "emscripten")))]
|
#[cfg(not(target_os = "emscripten"))]
|
||||||
extern crate ring;
|
extern crate ring;
|
||||||
extern crate rw_stream_sink;
|
extern crate rw_stream_sink;
|
||||||
#[cfg(feature = "secp256k1")]
|
#[cfg(feature = "secp256k1")]
|
||||||
@ -103,7 +103,7 @@ extern crate sha2;
|
|||||||
extern crate stdweb;
|
extern crate stdweb;
|
||||||
extern crate tokio_io;
|
extern crate tokio_io;
|
||||||
extern crate twofish;
|
extern crate twofish;
|
||||||
#[cfg(all(feature = "ring", not(target_os = "emscripten")))]
|
#[cfg(not(target_os = "emscripten"))]
|
||||||
extern crate untrusted;
|
extern crate untrusted;
|
||||||
|
|
||||||
#[cfg(feature = "aes-all")]
|
#[cfg(feature = "aes-all")]
|
||||||
@ -118,7 +118,7 @@ use ed25519_dalek::Keypair as Ed25519KeyPair;
|
|||||||
use futures::stream::MapErr as StreamMapErr;
|
use futures::stream::MapErr as StreamMapErr;
|
||||||
use futures::{Future, Poll, Sink, StartSend, Stream};
|
use futures::{Future, Poll, Sink, StartSend, Stream};
|
||||||
use libp2p_core::{PeerId, PublicKey};
|
use libp2p_core::{PeerId, PublicKey};
|
||||||
#[cfg(all(feature = "ring", not(target_os = "emscripten")))]
|
#[cfg(all(feature = "rsa", not(target_os = "emscripten")))]
|
||||||
use ring::signature::RSAKeyPair;
|
use ring::signature::RSAKeyPair;
|
||||||
use rw_stream_sink::RwStreamSink;
|
use rw_stream_sink::RwStreamSink;
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
@ -126,7 +126,7 @@ use std::io::{Error as IoError, ErrorKind as IoErrorKind};
|
|||||||
use std::iter;
|
use std::iter;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use tokio_io::{AsyncRead, AsyncWrite};
|
use tokio_io::{AsyncRead, AsyncWrite};
|
||||||
#[cfg(all(feature = "ring", not(target_os = "emscripten")))]
|
#[cfg(all(feature = "rsa", not(target_os = "emscripten")))]
|
||||||
use untrusted::Input;
|
use untrusted::Input;
|
||||||
|
|
||||||
mod algo_support;
|
mod algo_support;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user