Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upgrade some dependencies #1126

Merged
merged 1 commit into from
Jun 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions fil-proofs-tooling/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ lazy_static = "1.2"
glob = "0.3"
human-size = "0.4"
prettytable-rs = "0.8"
regex = "=1.3.7"
regex = "1.3.7"
commandspec = "0.12.2"
chrono = { version = "0.4.7", features = ["serde"] }
memmap = "0.7.0"
Expand All @@ -31,14 +31,14 @@ storage-proofs = { path = "../storage-proofs"}
filecoin-proofs = { path = "../filecoin-proofs"}
tempfile = "3.0.8"
cpu-time = "1.0.0"
git2 = "0.13"
heim = "0.0.9"
futures-preview = "0.3.0-alpha.17"
git2 = "0.13.6"
heim = { version = "0.1.0-beta.1", features = ["host", "memory", "cpu"] }
async-std = "1.6"
raw-cpuid = "7.0.3"
blake2s_simd = "0.5.6"
fil_logger = "0.1"
log = "0.4.8"
uom = "0.26"
uom = "0.28"
merkletree = "0.20.0"
bincode = "1.1.2"
anyhow = "1.0.23"
Expand Down
11 changes: 5 additions & 6 deletions fil-proofs-tooling/src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,14 @@ pub struct SystemMetadata {

impl SystemMetadata {
pub fn new() -> Result<Self> {
let host = futures::executor::block_on(heim::host::platform())
use async_std::task::block_on;
let host = block_on(async { heim::host::platform().await })
.map_err(|_| anyhow!("Failed to retrieve host information"))?;

let memory = futures::executor::block_on(heim::memory::memory())
let memory = block_on(async { heim::memory::memory().await })
.map_err(|_| anyhow!("Failed to retrieve memory information"))?;
let cpu_logical = futures::executor::block_on(heim::cpu::logical_count())
let cpu_logical = block_on(async { heim::cpu::logical_count().await })
.map_err(|_| anyhow!("Failed to retrieve cpu logical count information"))?;

let cpu_physical = futures::executor::block_on(heim::cpu::physical_count())
let cpu_physical = block_on(async { heim::cpu::physical_count().await })
.map_err(|_| anyhow!("Failed to retrieve cpu physical count information"))?;

let cpuid = raw_cpuid::CpuId::new();
Expand Down
14 changes: 7 additions & 7 deletions filecoin-proofs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ colored = "1.6"
pbr = "1.0"
byteorder = "1"
itertools = "0.9"
serde_cbor = "0.10.2"
serde_cbor = "0.11.1"
serde = { version = "1.0", features = ["rc", "derive"] }
serde_json = "1.0"
regex = "=1.3.7"
regex = "1.3.7"
ff = { version = "0.2.1", package = "fff" }
blake2b_simd = "0.5"
bellperson = "0.8.0"
Expand All @@ -31,7 +31,7 @@ fil-sapling-crypto = "0.6.0"
clap = "2"
log = "0.4.7"
fil_logger = "0.1"
env_proxy = "0.3"
env_proxy = "0.4"
os_type = "2.2.0"
flate2 = { version = "1.0.9", features = ["rust_backend"]}
tar = "0.4.26"
Expand All @@ -49,7 +49,7 @@ typenum = "1.11.2"
bitintr = "0.3.0"
gperftools = { version = "0.2", optional = true }
phase2 = { package = "phase21", version = "0.6.0" }
simplelog = "0.7.4"
simplelog = "0.8.0"
rand_chacha = "0.2.1"
dialoguer = "0.6.2"
generic-array = "0.13.2"
Expand All @@ -58,13 +58,13 @@ humansize = "1.1.0"
indicatif = "0.14.0"

[dependencies.reqwest]
version = "0.9"
version = "0.10"
default-features = false
features = ["default-tls-vendored"]
features = ["blocking", "native-tls-vendored"]

[dev-dependencies]
criterion = "0.3"
rexpect = "0.3.0"
rexpect = "0.4.0"
pretty_assertions = "0.6.1"
failure = "0.1.7"
tempfile = "3"
Expand Down
2 changes: 1 addition & 1 deletion filecoin-proofs/src/bin/paramfetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use clap::{values_t, App, Arg, ArgMatches};
use flate2::read::GzDecoder;
use itertools::Itertools;
use pbr::{ProgressBar, Units};
use reqwest::{header, Client, Proxy, Url};
use reqwest::{blocking::Client, header, Proxy, Url};
use tar::Archive;

use filecoin_proofs::param::*;
Expand Down
12 changes: 4 additions & 8 deletions filecoin-proofs/src/bin/phase2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -673,8 +673,7 @@ fn setup_new_logger(proof: Proof, hasher: Hasher, sector_size: u64) {
LevelFilter::Info,
simplelog::Config::default(),
TerminalMode::Mixed,
)
.unwrap(),
),
WriteLogger::new(LevelFilter::Info, simplelog::Config::default(), log_file),
])
.expect("failed to setup logger");
Expand All @@ -700,8 +699,7 @@ fn setup_contribute_logger(path_before: &str) {
LevelFilter::Info,
simplelog::Config::default(),
TerminalMode::Mixed,
)
.unwrap(),
),
WriteLogger::new(LevelFilter::Info, simplelog::Config::default(), log_file),
])
.expect("failed to setup logger");
Expand Down Expand Up @@ -736,8 +734,7 @@ fn setup_verify_logger(param_paths: &[&str]) {
LevelFilter::Info,
simplelog::Config::default(),
TerminalMode::Mixed,
)
.unwrap(),
),
WriteLogger::new(LevelFilter::Info, simplelog::Config::default(), log_file),
])
.expect("failed to setup logger");
Expand All @@ -764,8 +761,7 @@ fn setup_verifyd_logger(proof: Proof, hasher: Hasher, sector_size: u64) {
LevelFilter::Info,
simplelog::Config::default(),
TerminalMode::Mixed,
)
.unwrap(),
),
WriteLogger::new(LevelFilter::Info, simplelog::Config::default(), log_file),
])
.expect("failed to setup logger");
Expand Down
5 changes: 3 additions & 2 deletions filecoin-proofs/tests/paramfetch/support/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ use std::io::Read;
use std::path::{Path, PathBuf};

use failure::SyncFailure;
use rexpect::session::PtyBashSession;
use rexpect::session::PtyReplSession;
use tempfile;
use tempfile::TempDir;

use crate::support::{cargo_bin, spawn_bash_with_retries};
Expand Down Expand Up @@ -107,7 +108,7 @@ impl ParamFetchSessionBuilder {

/// An active pseudoterminal (pty) used to interact with paramfetch.
pub struct ParamFetchSession {
pty_session: PtyBashSession,
pty_session: PtyReplSession,
_cache_dir: TempDir,
}

Expand Down
5 changes: 3 additions & 2 deletions filecoin-proofs/tests/parampublish/support/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ use std::path::{Path, PathBuf};

use failure::SyncFailure;
use rand::Rng;
use rexpect::session::PtyBashSession;
use rexpect::session::PtyReplSession;
use tempfile;
use tempfile::TempDir;

use storage_proofs::parameter_cache::{CacheEntryMetadata, PARAMETER_CACHE_ENV_VAR};
Expand Down Expand Up @@ -154,7 +155,7 @@ impl ParamPublishSessionBuilder {

/// An active pseudoterminal (pty) used to interact with parampublish.
pub struct ParamPublishSession {
pty_session: PtyBashSession,
pty_session: PtyReplSession,
_cache_dir: TempDir,
}

Expand Down
4 changes: 2 additions & 2 deletions filecoin-proofs/tests/support/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{env, thread};

use failure::format_err;
use filecoin_proofs::param::ParameterData;
use rexpect::session::PtyBashSession;
use rexpect::session::PtyReplSession;
use rexpect::spawn_bash;
use std::collections::btree_map::BTreeMap;
use std::fs::File;
Expand Down Expand Up @@ -66,7 +66,7 @@ pub fn cargo_bin<S: AsRef<str>>(name: S) -> PathBuf {
pub fn spawn_bash_with_retries(
retries: u8,
timeout: Option<u64>,
) -> Result<PtyBashSession, rexpect::errors::Error> {
) -> Result<PtyReplSession, rexpect::errors::Error> {
let result = spawn_bash(timeout);
if result.is_ok() || retries == 0 {
result
Expand Down
1 change: 0 additions & 1 deletion sha2raw/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ version = "1.4.0"

[dev-dependencies]
digest = { version = "0.8", features = ["dev", "std"] }
hex-literal = "0.1"
sha2 = "0.8.1"
rand = "0.7.3"
rand_xorshift = "0.2.0"
Expand Down
6 changes: 3 additions & 3 deletions storage-proofs/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bench = false
rand = "0.7"
merkletree = "0.20.0"
byteorder = "1"
config = "0.9.3"
config = { version = "0.10.1", default-features = false, features = ["toml"] }
itertools = "0.9"
lazy_static = "1.2"
memmap = "0.7"
Expand Down Expand Up @@ -45,9 +45,9 @@ cpu-time = { version = "1.0", optional = true }
gperftools = { version = "0.2", optional = true }

[dev-dependencies]
proptest = "0.7"
proptest = "0.10"
criterion = "0.3"
femme = "1.2.0"
femme = "2.1.0"
bitvec = "0.17"
rand_xorshift = "0.2.0"
pretty_assertions = "0.6.1"
Expand Down
2 changes: 1 addition & 1 deletion storage-proofs/core/src/crypto/sloth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mod tests {
use super::*;
use ff::PrimeField;
use paired::bls12_381::{Fr, FrRepr};
use proptest::{prop_compose, proptest, proptest_helper};
use proptest::{prop_compose, proptest};

// the modulus from `bls12_381::Fr`
// The definition of MODULUS and comment defining r come from paired/src/bls_12_381/fr.rs.
Expand Down