Skip to content

Commit 9750951

Browse files
authored
core/: Update libsecp256k1 from 0.6 to 0.7 (#2306)
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
1 parent cd2588e commit 9750951

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

core/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ fnv = "1.0"
1818
futures = { version = "0.3.1", features = ["executor", "thread-pool"] }
1919
futures-timer = "3"
2020
lazy_static = "1.2"
21-
libsecp256k1 = { version = "0.6.0", optional = true }
21+
libsecp256k1 = { version = "0.7.0", optional = true }
2222
log = "0.4"
2323
multiaddr = { version = "0.13.0" }
2424
multihash = { version = "0.14", default-features = false, features = ["std", "multihash-impl", "identity", "sha2"] }
2525
multistream-select = { version = "0.10", path = "../misc/multistream-select" }
2626
parking_lot = "0.11.0"
2727
pin-project = "1.0.0"
2828
prost = "0.9"
29-
rand = "0.7"
29+
rand = "0.8"
3030
rw-stream-sink = "0.2.0"
3131
sha2 = "0.9.1"
3232
smallvec = "1.6.1"
@@ -47,6 +47,7 @@ libp2p-noise = { path = "../transports/noise" }
4747
libp2p-tcp = { path = "../transports/tcp" }
4848
multihash = { version = "0.14", default-features = false, features = ["arb"] }
4949
quickcheck = "0.9.0"
50+
rand07 = { package = "rand", version = "0.7" }
5051
wasm-timer = "0.2"
5152

5253
[build-dependencies]

core/src/identity/rsa.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ impl DerDecodable<'_> for Asn1SubjectPublicKeyInfo {
298298
mod tests {
299299
use super::*;
300300
use quickcheck::*;
301-
use rand::seq::SliceRandom;
301+
use rand07::seq::SliceRandom;
302302
use std::fmt;
303303

304304
const KEY1: &'static [u8] = include_bytes!("test/rsa-2048.pk8");

core/tests/concurrent_dialing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use libp2p_core::{
2929
ConnectedPoint,
3030
};
3131
use quickcheck::*;
32-
use rand::Rng;
32+
use rand07::Rng;
3333
use std::num::NonZeroU8;
3434
use std::task::Poll;
3535
use util::{test_network, TestHandler};

core/tests/connection_limits.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ use libp2p_core::{
2828
PeerId,
2929
};
3030
use quickcheck::*;
31-
use rand::Rng;
3231
use std::task::Poll;
3332
use util::{test_network, TestHandler};
3433

3534
#[test]
3635
fn max_outgoing() {
37-
let outgoing_limit = rand::thread_rng().gen_range(1, 10);
36+
use rand::Rng;
37+
38+
let outgoing_limit = rand::thread_rng().gen_range(1..10);
3839

3940
let limits = ConnectionLimits::default().with_max_pending_outgoing(Some(outgoing_limit));
4041
let cfg = NetworkConfig::default().with_connection_limits(limits);
@@ -89,6 +90,8 @@ fn max_outgoing() {
8990

9091
#[test]
9192
fn max_established_incoming() {
93+
use rand07::Rng;
94+
9295
#[derive(Debug, Clone)]
9396
struct Limit(u32);
9497

0 commit comments

Comments
 (0)