Skip to content

Commit d204da4

Browse files
committed
Update dependencies
1 parent 0da8996 commit d204da4

File tree

25 files changed

+175
-249
lines changed

25 files changed

+175
-249
lines changed

Cargo.lock

+122-191
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ members = [
3838
actix = "0.8.2"
3939
lazy_static = "1.4.0"
4040
log = "0.4.6"
41-
rand = "0.6"
41+
rand = "0.7"
4242
serde_json = "1.0.0"
4343
reqwest = "0.9"
4444
futures = "0.1.25"

async-utils/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ authors = ["Near Inc <hello@nearprotocol.com>"]
55
edition = "2018"
66

77
[dependencies]
8-
futures03 = { package = "futures-preview", version = "0.3.0-alpha.16", features = ["compat", "async-await", "nightly"] }
8+
futures03 = { package = "futures-preview", version = "0.3.0-alpha.19", features = ["compat", "async-await"] }
99
tokio = "0.1.15"

chain/chain/src/test_utils.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ use near_primitives::transaction::{
1818
TransferAction,
1919
};
2020
use near_primitives::types::{
21-
AccountId, Balance, BlockIndex, EpochId, MerkleHash, Nonce, ShardId, StateRoot,
22-
ValidatorStake,
21+
AccountId, Balance, BlockIndex, EpochId, MerkleHash, Nonce, ShardId, StateRoot, ValidatorStake,
2322
};
2423
use near_primitives::views::QueryResponse;
2524
use near_store::test_utils::create_test_store;
@@ -179,7 +178,7 @@ impl KeyValueRuntime {
179178
}
180179
let prev_block_header = self
181180
.get_block_header(prev_hash)?
182-
.ok_or(format!("Missing block {} when computing the epoch", prev_hash))?;
181+
.ok_or_else(|| format!("Missing block {} when computing the epoch", prev_hash))?;
183182
Ok(prev_block_header.inner.height)
184183
}
185184

chain/chunks/Cargo.toml

+2-7
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,15 @@ edition = "2018"
66

77
[dependencies]
88
actix = "0.8.1"
9-
typed-arena = "1.4.1"
109
futures = "0.1.25"
1110
tokio = "0.1"
12-
rand = "0.6"
13-
rand_xorshift = "0.1"
11+
rand = "0.7"
1412
chrono = "0.4.6"
1513
log = "0.4"
16-
borsh = "0.2.2"
14+
borsh = "0.2.7"
1715
serde = "1.0"
1816
serde_derive = "1.0"
19-
elapsed = "0.1"
20-
protobuf = "2.4"
2117
reed-solomon-erasure = "3.1.1"
22-
crossbeam = "0.3.0"
2318
cached = "0.9.0"
2419

2520
near-crypto = { path = "../../core/crypto" }

chain/client/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ authors = ["Near Inc <hello@nearprotocol.com>"]
55
edition = "2018"
66

77
[dependencies]
8-
ansi_term = "0.11.0"
8+
ansi_term = "0.12"
99
actix = "0.8.1"
1010
futures = "0.1"
1111
chrono = { version = "0.4.4", features = ["serde"] }
1212
kvdb = "0.1"
1313
log = "0.4"
14-
rand = "0.6.5"
14+
rand = "0.7"
1515
serde = { version = "1.0", features = ["derive"] }
1616
serde_derive = "1.0"
1717
serde_json = "1.0"

chain/client/tests/chunks_management.rs

+10-3
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,29 @@ use near_client::{ClientActor, GetBlock, ViewClientActor};
1010
use near_network::{NetworkClientMessages, NetworkRequests, NetworkResponses, PeerInfo};
1111
use near_primitives::block::BlockHeader;
1212
use near_primitives::hash::CryptoHash;
13+
use near_primitives::test_utils::heavy_test;
1314
use near_primitives::test_utils::init_integration_logger;
1415
use near_primitives::transaction::SignedTransaction;
1516

1617
#[test]
1718
fn chunks_produced_and_distributed_all_in_all_shards() {
18-
chunks_produced_and_distributed_common(1);
19+
heavy_test(|| {
20+
chunks_produced_and_distributed_common(1);
21+
});
1922
}
2023

2124
#[test]
2225
fn chunks_produced_and_distributed_2_vals_per_shard() {
23-
chunks_produced_and_distributed_common(2);
26+
heavy_test(|| {
27+
chunks_produced_and_distributed_common(2);
28+
});
2429
}
2530

2631
#[test]
2732
fn chunks_produced_and_distributed_one_val_per_shard() {
28-
chunks_produced_and_distributed_common(4);
33+
heavy_test(|| {
34+
chunks_produced_and_distributed_common(4);
35+
});
2936
}
3037

3138
/// Runs block producing client and stops after network mock received seven blocks

chain/epoch_manager/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ edition = "2018"
66

77

88
[dependencies]
9-
rand = "0.6.5"
9+
protocol_defining_rand = { package = "rand", version = "0.6.5" }
1010
log = "0.4"
11-
borsh = "0.2.2"
11+
borsh = "0.2.7"
1212
serde = "1.0"
1313
serde_derive = "1.0"
1414
serde_json = "1.0"

chain/epoch_manager/src/proposals.rs

+7-8
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ use std::collections::btree_map::Entry;
22
use std::collections::{BTreeMap, HashMap, HashSet};
33
use std::iter;
44

5-
use rand::seq::SliceRandom;
6-
use rand::{rngs::StdRng, SeedableRng};
7-
85
use near_primitives::types::{AccountId, Balance, ValidatorId, ValidatorStake};
96

107
use crate::types::{EpochConfig, EpochError, EpochInfo, RngSeed};
@@ -118,10 +115,13 @@ pub fn proposals_to_epoch_info(
118115
if dup_proposals.len() < num_seats as usize {
119116
return Err(EpochError::SelectedSeatsMismatch(dup_proposals.len() as u64, num_seats));
120117
}
121-
122-
// Shuffle duplicate proposals.
123-
let mut rng: StdRng = SeedableRng::from_seed(rng_seed);
124-
dup_proposals.shuffle(&mut rng);
118+
{
119+
use protocol_defining_rand::seq::SliceRandom;
120+
use protocol_defining_rand::{rngs::StdRng, SeedableRng};
121+
// Shuffle duplicate proposals.
122+
let mut rng: StdRng = SeedableRng::from_seed(rng_seed);
123+
dup_proposals.shuffle(&mut rng);
124+
}
125125

126126
// Block producers are first `num_block_producers` proposals.
127127
let block_producers = dup_proposals[..epoch_config.num_block_producers].to_vec();
@@ -236,5 +236,4 @@ mod tests {
236236
)
237237
);
238238
}
239-
240239
}

chain/jsonrpc/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ authors = ["Near Inc <hello@nearprotocol.com>"]
55
edition = "2018"
66

77
[dependencies]
8-
ansi_term = "0.11.0"
8+
ansi_term = "0.12"
99
actix = "0.8.1"
1010
actix-web = "1.0.0-rc"
1111
actix-cors = "0.1"
1212
base64 = "0.10.0"
1313
bytes = "0.4.11"
1414
futures = "0.1"
15-
futures03 = { package = "futures-preview", version = "0.3.0-alpha.18", features = ["compat", "async-await", "nightly"] }
15+
futures03 = { package = "futures-preview", version = "0.3.0-alpha.19", features = ["compat", "async-await"] }
1616
chrono = { version = "0.4.4", features = ["serde"] }
1717
lazy_static = "1.4"
1818
log = "0.4"
@@ -21,7 +21,7 @@ serde_derive = "1.0"
2121
serde_json = "1.0"
2222
serde = { version = "1.0", features = ["derive"] }
2323
tokio = "0.1.15"
24-
uuid = { version = "~0.6", features = ["v4"] }
24+
uuid = { version = "~0.8", features = ["v4"] }
2525

2626
borsh = "0.2.7"
2727

chain/jsonrpc/client/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ futures = "0.1"
1010
serde_derive = "1.0"
1111
serde_json = "1.0"
1212
serde = "1.0"
13-
uuid = { version = "~0.6", features = ["v4"] }
13+
uuid = { version = "~0.8", features = ["v4"] }
1414

1515
near-primitives = { path = "../../../core/primitives" }

chain/jsonrpc/client/src/message.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ impl Message {
238238
jsonrpc: Version,
239239
method,
240240
params,
241-
id: Value::String(Uuid::new_v4().hyphenated().to_string()),
241+
id: Value::String(Uuid::new_v4().to_hyphenated().to_string()),
242242
})
243243
}
244244
/// Create a top-level error (without an ID).

chain/network/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ futures = "0.1"
1313
chrono = { version = "0.4.4", features = ["serde"] }
1414
serde = "1.0"
1515
serde_derive = "1.0"
16-
rand = "0.6.5"
16+
rand = "0.7"
1717
reed-solomon-erasure = "3.1.1"
1818
byteorder = "1.2"
1919
lazy_static = "1.4"

chain/pool/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ near-primitives = { path = "../../core/primitives" }
1515
near-chain = { path = "../chain" }
1616

1717
[dev-dependencies]
18-
rand = "0.6"
18+
rand = "0.7"

core/crypto/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ edition = "2018"
66

77
[dependencies]
88
sodiumoxide = "0.2.5"
9-
parity-secp256k1 = "0.6.0"
9+
parity-secp256k1 = "0.7.0"
1010

11-
bs58 = "0.2.4"
11+
bs58 = "0.3"
1212
borsh = "0.2.7"
1313
serde = "1.0"
1414
serde_derive = "1.0"

core/primitives/Cargo.toml

+3-5
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,17 @@ edition = "2018"
77
[dependencies]
88
regex = "1"
99
bincode = { version = "1.0", features = ["i128"] }
10-
bs58 = "0.2.4"
10+
bs58 = "0.3"
1111
base64 = "0.10.1"
1212
byteorder = "1.2"
1313
chrono = { version = "0.4.4", features = ["serde"] }
1414
sodiumoxide = "0.2.5"
1515
lazy_static = "1.4"
1616
serde = "1.0"
1717
serde_derive = "1.0"
18-
sha2 = "0.8.0"
1918
serde_json = "1.0"
20-
rand = "0.6"
21-
rand_xorshift = "0.1"
22-
env_logger = "0.6.0"
19+
rand = "0.7"
20+
env_logger = "0.7"
2321
log = "0.4"
2422
reed-solomon-erasure = "3.1.1"
2523
jemallocator = { version = "0.3.0", optional = true }

core/store/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ near-primitives = { path = "../primitives" }
2222

2323
[dev-dependencies]
2424
tempdir = "0.3"
25-
hex-literal = "0.1.1"
25+
hex-literal = "0.2"
2626
bencher = "0.1.5"
27-
rand = "0.6"
27+
rand = "0.7"
2828

2929
[[bench]]
3030
name = "trie_bench"

near/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ byteorder = "1.2"
1010
kvdb = "0.1"
1111
kvdb-memorydb = "0.1"
1212
log = "0.4"
13-
env_logger = "0.6.0"
13+
env_logger = "0.7"
1414
chrono = { version = "0.4.4", features = ["serde"] }
1515
git-version = "0.3.1"
1616
futures = "0.1"
1717
clap = "2.32"
18-
rand = "0.6.5"
18+
rand = "0.7"
1919
serde = "1.0"
2020
serde_derive = "1.0"
2121
serde_json = "1.0"
22-
dirs = "1.0.5"
22+
dirs = "2"
2323
lazy_static = "1.4"
2424

2525
borsh = "0.2.7"

runtime/near-vm-logic/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This crate implements the specification of the interface that Near blockchain ex
1313
"""
1414

1515
[dependencies]
16-
bs58 = "0.2.2"
16+
bs58 = "0.3"
1717
sodiumoxide = { version = "0.2.5", optional = true }
1818
serde = { version = "1.0", features = ["derive"] }
1919
near-runtime-fees = { path = "../near-runtime-fees", version = "0.3.1" }

runtime/near-vm-runner/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ parity-wasm = "0.40.1"
2424
[dev-dependencies]
2525
near-vm-logic = { path="../near-vm-logic", features=["mocks"], version = "0.3.0"}
2626
assert_matches = "1.3.0"
27-
wabt = "0.7.4"
27+
wabt = "0.9"
2828
bencher = "0.1.5"
2929

3030
[[bench]]

runtime/runtime/Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ serde_derive = "1.0"
1212
serde_json = "1.0"
1313
log = "0.4"
1414
kvdb = "0.1"
15-
rand = "0.6"
16-
rand_xorshift = "0.1"
15+
rand = "0.7"
1716
sodiumoxide = "0.2.5"
1817
lazy_static = "1.4"
1918

test-utils/loadtester/Cargo.toml

+3-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ edition = "2018"
77
[dependencies]
88
clap = "2.32"
99
log = "0.4"
10-
env_logger = "0.6.0"
11-
rand = "0.6"
12-
rand_xorshift = "0.1"
13-
hex = "0.3"
10+
env_logger = "0.7"
11+
rand = "0.7"
12+
hex = "0.4"
1413
futures = "0.1.25"
1514
tokio = "0.1"
1615
serde_json = "1.0.0"

test-utils/loadtester/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fn configure_logging(log_level: log::LevelFilter) {
2222
internal_targets.iter().for_each(|internal_targets| {
2323
builder.filter(Some(internal_targets), log_level);
2424
});
25-
builder.default_format_timestamp_nanos(true);
25+
builder.format_timestamp_nanos();
2626
builder.try_init().unwrap();
2727
}
2828

test-utils/state-viewer/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2018"
66

77
[dependencies]
88
clap = "2.32.0"
9-
hex = "0.3"
9+
hex = "0.4"
1010
ansi_term = "0.12.0"
1111
borsh = "0.2.7"
1212

test-utils/testlib/Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ path = "src/run_nodes.rs"
1111
actix = "0.8.2"
1212
clap = "2.32"
1313
log = "0.4"
14-
rand = "0.6"
15-
rand_xorshift = "0.1"
14+
rand = "0.7"
1615
serde = "1.0"
1716
serde_json = "1.0.0"
1817
tokio = "0.1"

0 commit comments

Comments
 (0)