Skip to content

Commit

Permalink
chore: lock versions to the correct minor, and update (#1613)
Browse files Browse the repository at this point in the history
* chore: lock versions to the correct minor, and update

1. Update minimum versions for in-workspace crates.
2. Use the tilde constraint to ensure that we don't update to the next
   minor version. The next minor version is going to revert the change.

* wip: cache
  • Loading branch information
Stebalien authored Jun 15, 2022
1 parent 004d7b4 commit 54bda68
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 42 deletions.
12 changes: 6 additions & 6 deletions fil-proofs-param/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ repository = "https://github.com/filecoin-project/rust-fil-proofs"
readme = "README.md"

[dependencies]
storage-proofs-core = { path = "../storage-proofs-core", version = "^11.0.0", default-features = false}
storage-proofs-porep = { path = "../storage-proofs-porep", version = "^11.0.0", default-features = false }
storage-proofs-post = { path = "../storage-proofs-post", version = "^11.0.0", default-features = false }
storage-proofs-update = { path = "../storage-proofs-update", version = "^11.0.0", default-features = false }
filecoin-hashers = { version = "^6.0.0", path = "../filecoin-hashers", default-features = false, features = ["poseidon", "sha256"] }
filecoin-proofs = { version = "^11.0.0", path = "../filecoin-proofs", default-features = false }
storage-proofs-core = { path = "../storage-proofs-core", version = "~11.1.0", default-features = false}
storage-proofs-porep = { path = "../storage-proofs-porep", version = "~11.1.0", default-features = false }
storage-proofs-post = { path = "../storage-proofs-post", version = "~11.1.0", default-features = false }
storage-proofs-update = { path = "../storage-proofs-update", version = "~11.1.0", default-features = false }
filecoin-hashers = { version = "~6.1.0", path = "../filecoin-hashers", default-features = false, features = ["poseidon", "sha256"] }
filecoin-proofs = { version = "~11.1.0", path = "../filecoin-proofs", default-features = false }
bitvec = "0.17"
rand = "0.8"
lazy_static = "1.2"
Expand Down
10 changes: 8 additions & 2 deletions fil-proofs-param/src/bin/paramfetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ lazy_static! {
}

const DEFAULT_JSON: &str = include_str!("../../parameters.json");
const DEFAULT_IPGET_VERSION: &str = "v0.6.0";
const DEFAULT_IPGET_VERSION: &str = "v0.8.1";

#[inline]
fn get_ipget_dir(version: &str) -> String {
Expand Down Expand Up @@ -192,7 +192,13 @@ fn download_file_with_ipget(
ipget_args: &Option<String>,
verbose: bool,
) -> Result<()> {
let mut args = vec![cid, "-o", path.to_str().unwrap()];
let mut args = vec![
cid,
"-p",
"Qmde7irdYqkbhfFsu6xKzBgmGWJPnx8bS7TNVdAko4gswW",
"-o",
path.to_str().unwrap(),
];
if let Some(ipget_args) = ipget_args {
args.extend(ipget_args.split_whitespace());
}
Expand Down
12 changes: 6 additions & 6 deletions fil-proofs-tooling/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ repository = "https://github.com/filecoin-project/rust-fil-proofs"
readme = "README.md"

[dependencies]
storage-proofs-core = { path = "../storage-proofs-core", version = "^11.0.0", default-features = false}
storage-proofs-porep = { path = "../storage-proofs-porep", version = "^11.0.0", default-features = false }
storage-proofs-post = { path = "../storage-proofs-post", version = "^11.0.0", default-features = false }
storage-proofs-update = { path = "../storage-proofs-update", version = "^11.0.0", default-features = false }
filecoin-proofs = { path = "../filecoin-proofs", default-features = false }
filecoin-hashers = { path = "../filecoin-hashers", default-features = false, features = ["poseidon", "blake2s", "sha256"] }
storage-proofs-core = { path = "../storage-proofs-core", version = "~11.1.0", default-features = false}
storage-proofs-porep = { path = "../storage-proofs-porep", version = "~11.1.0", default-features = false }
storage-proofs-post = { path = "../storage-proofs-post", version = "~11.1.0", default-features = false }
storage-proofs-update = { path = "../storage-proofs-update", version = "~11.1.0", default-features = false }
filecoin-proofs = { path = "../filecoin-proofs", version = "~11.1.0", default-features = false }
filecoin-hashers = { path = "../filecoin-hashers", version = "~6.1.0", default-features = false, features = ["poseidon", "blake2s", "sha256"] }
clap = "2"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion filecoin-hashers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ anyhow = "1.0.34"
serde = "1.0.117"
rand = "0.8.0"

neptune = { version = "5.2.0", optional = true, features = ["arity2", "arity4", "arity8", "arity11", "arity16", "arity24", "arity36"] }
neptune = { version = "~5.2.0", optional = true, features = ["arity2", "arity4", "arity8", "arity11", "arity16", "arity24", "arity36"] }
lazy_static = { version = "1.4.0", optional = true }
blake2s_simd = { version = "0.5.11", optional = true }
sha2 = { version = "0.9.2", optional = true }
Expand Down
12 changes: 6 additions & 6 deletions filecoin-proofs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ repository = "https://github.com/filecoin-project/rust-fil-proofs"
readme = "README.md"

[dependencies]
storage-proofs-core = { path = "../storage-proofs-core", version = "^11.0.0", default-features = false}
storage-proofs-porep = { path = "../storage-proofs-porep", version = "^11.0.0", default-features = false }
storage-proofs-post = { path = "../storage-proofs-post", version = "^11.0.0", default-features = false }
storage-proofs-update = { path = "../storage-proofs-update", version = "^11.0.0", default-features = false }
filecoin-hashers = { version = "^6.0.0", path = "../filecoin-hashers", default-features = false, features = ["poseidon", "sha256"] }
storage-proofs-core = { path = "../storage-proofs-core", version = "~11.1.0", default-features = false}
storage-proofs-porep = { path = "../storage-proofs-porep", version = "~11.1.0", default-features = false }
storage-proofs-post = { path = "../storage-proofs-post", version = "~11.1.0", default-features = false }
storage-proofs-update = { path = "../storage-proofs-update", version = "~11.1.0", default-features = false }
filecoin-hashers = { version = "~6.1.0", path = "../filecoin-hashers", default-features = false, features = ["poseidon", "sha256"] }
bitvec = "0.17"
rand = "0.8"
lazy_static = "1.2"
Expand All @@ -40,7 +40,7 @@ gperftools = { version = "0.2", optional = true }
generic-array = "0.14.4"
group = "0.11.0"
byte-slice-cast = "1.0.0"
fr32 = { path = "../fr32", version = "^4.0.0", default-features = false }
fr32 = { path = "../fr32", version = "~4.1.0", default-features = false }
once_cell = "1.8.0"
blstrs = "0.4.0"

Expand Down
8 changes: 4 additions & 4 deletions storage-proofs-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ readme = "README.md"
bench = false

[dependencies]
filecoin-hashers = { path = "../filecoin-hashers", version = "^6.0.0", default-features = false, features = ["sha256", "poseidon"] }
filecoin-hashers = { path = "../filecoin-hashers", version = "~6.1.0", default-features = false, features = ["sha256", "poseidon"] }
rand = "0.8"
merkletree = "0.21.0"
byteorder = "1"
Expand All @@ -39,12 +39,12 @@ hex = "0.4.0"
generic-array = "0.14.4"
anyhow = "1.0.23"
thiserror = "1.0.6"
neptune = { version = "5.2.0", features = ["arity2", "arity4", "arity8", "arity11", "arity16", "arity24", "arity36"] }
neptune = { version = "~5.2.0", features = ["arity2", "arity4", "arity8", "arity11", "arity16", "arity24", "arity36"] }
cpu-time = { version = "1.0", optional = true }
gperftools = { version = "0.2", optional = true }
num_cpus = "1.10.1"
semver = "0.11.0"
fr32 = { path = "../fr32", version = "^4.0.0"}
fr32 = { path = "../fr32", version = "~4.1.0"}
pairing = "0.21"
blstrs = "0.4.0"

Expand All @@ -55,7 +55,7 @@ bitvec = "0.17"
rand_xorshift = "0.3.0"
pretty_assertions = "0.6.1"
sha2raw = { path = "../sha2raw", version = "^6.0.0"}
filecoin-hashers = { path = "../filecoin-hashers", version = "^6.0.0", default-features = false, features = ["blake2s", "sha256", "poseidon"] }
filecoin-hashers = { path = "../filecoin-hashers", version = "~6.1.0", default-features = false, features = ["blake2s", "sha256", "poseidon"] }

[features]
default = ["opencl"]
Expand Down
10 changes: 5 additions & 5 deletions storage-proofs-porep/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ readme = "README.md"
[dependencies]
crossbeam = "0.8"
digest = "0.9"
storage-proofs-core = { path = "../storage-proofs-core", version = "^11.0.0", default-features = false}
storage-proofs-core = { path = "../storage-proofs-core", version = "~11.1.0", default-features = false}
sha2raw = { path = "../sha2raw", version = "^6.0.0"}
filecoin-hashers = { path = "../filecoin-hashers", version = "^6.0.0", default-features = false, features = ["poseidon", "sha256"]}
filecoin-hashers = { path = "../filecoin-hashers", version = "~6.1.0", default-features = false, features = ["poseidon", "sha256"]}
rand = "0.8"
merkletree = "0.21.0"
mapr = "0.8.0"
Expand All @@ -28,7 +28,7 @@ log = "0.4.7"
pretty_assertions = "0.6.1"
generic-array = "0.14.4"
anyhow = "1.0.23"
neptune = { version = "5.2.0", features = ["arity2", "arity4", "arity8", "arity11", "arity16", "arity24", "arity36"] }
neptune = { version = "~5.2.0", features = ["arity2", "arity4", "arity8", "arity11", "arity16", "arity24", "arity36"] }
num_cpus = "1.10.1"
hex = "0.4.2"
bincode = "1.1.2"
Expand All @@ -38,7 +38,7 @@ byte-slice-cast = "1.0.0"
hwloc = { version = "0.3.0", optional = true }
libc = "0.2"
fdlimit = "0.2.0"
fr32 = { path = "../fr32", version = "^4.0.0", default-features = false }
fr32 = { path = "../fr32", version = "~4.1.0", default-features = false }
yastl = "0.1.2"
fil_logger = "0.1"
pairing = "0.21"
Expand All @@ -55,7 +55,7 @@ rand_xorshift = "0.3.0"
criterion = "0.3.2"
glob = "0.3.0"
pretty_env_logger = "0.4.0"
filecoin-hashers = { path = "../filecoin-hashers", version = "^6.0.0", default-features = false, features = ["poseidon", "sha256", "blake2s"]}
filecoin-hashers = { path = "../filecoin-hashers", version = "~6.1.0", default-features = false, features = ["poseidon", "sha256", "blake2s"]}

[features]
default = ["opencl", "multicore-sdr"]
Expand Down
10 changes: 5 additions & 5 deletions storage-proofs-post/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ repository = "https://github.com/filecoin-project/rust-fil-proofs"
readme = "README.md"

[dependencies]
storage-proofs-core = { path = "../storage-proofs-core", version = "^11.0.0", default-features = false}
filecoin-hashers = { path = "../filecoin-hashers", version = "^6.0.0", default-features = false, features = ["poseidon", "sha256"]}
storage-proofs-core = { path = "../storage-proofs-core", version = "~11.1.0", default-features = false}
filecoin-hashers = { path = "../filecoin-hashers", version = "~6.1.0", default-features = false, features = ["poseidon", "sha256"]}
rand = "0.8"
merkletree = "0.21.0"
byteorder = "1"
Expand All @@ -26,15 +26,15 @@ log = "0.4.7"
hex = "0.4.0"
generic-array = "0.14.4"
anyhow = "1.0.23"
neptune = { version = "5.2.0", features = ["arity2", "arity4", "arity8", "arity11", "arity16", "arity24", "arity36"] }
neptune = { version = "~5.2.0", features = ["arity2", "arity4", "arity8", "arity11", "arity16", "arity24", "arity36"] }
num_cpus = "1.10.1"
fr32 = { path = "../fr32", version = "^4.0.0", default-features = false }
fr32 = { path = "../fr32", version = "~4.1.0", default-features = false }
blstrs = "0.4.0"

[dev-dependencies]
tempfile = "3"
pretty_assertions = "0.6.1"
filecoin-hashers = { path = "../filecoin-hashers", version = "^6.0.0", default-features = false, features = ["poseidon", "sha256", "blake2s"]}
filecoin-hashers = { path = "../filecoin-hashers", version = "~6.1.0", default-features = false, features = ["poseidon", "sha256", "blake2s"]}
rand_xorshift = "0.3.0"

[features]
Expand Down
14 changes: 7 additions & 7 deletions storage-proofs-update/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ readme = "README.md"
[dependencies]
crossbeam = "0.8"
digest = "0.9"
storage-proofs-core = { path = "../storage-proofs-core", version = "^11.0.0", default-features = false}
storage-proofs-porep = { path = "../storage-proofs-porep", version = "^11.0.0", default-features = false}
storage-proofs-core = { path = "../storage-proofs-core", version = "~11.1.0", default-features = false}
storage-proofs-porep = { path = "../storage-proofs-porep", version = "~11.1.0", default-features = false}
sha2raw = { path = "../sha2raw", version = "^6.0.0"}
filecoin-hashers = { path = "../filecoin-hashers", version = "^6.0.0", default-features = false, features = ["poseidon", "sha256"]}
filecoin-hashers = { path = "../filecoin-hashers", version = "~6.1.0", default-features = false, features = ["poseidon", "sha256"]}
rand = "0.8"
merkletree = "0.21.0"
mapr = "0.8.0"
Expand All @@ -30,7 +30,7 @@ log = "0.4.7"
pretty_assertions = "0.6.1"
generic-array = "0.14.4"
anyhow = "1.0.23"
neptune = { version = "5.2.0", features = ["arity2", "arity4", "arity8", "arity11", "arity16", "arity24", "arity36"] }
neptune = { version = "~5.2.0", features = ["arity2", "arity4", "arity8", "arity11", "arity16", "arity24", "arity36"] }
num_cpus = "1.10.1"
hex = "0.4.2"
bincode = "1.1.2"
Expand All @@ -40,7 +40,7 @@ byte-slice-cast = "1.0.0"
hwloc = { version = "0.3.0", optional = true }
libc = "0.2"
fdlimit = "0.2.0"
fr32 = { path = "../fr32", version = "^4.0.0", default-features = false }
fr32 = { path = "../fr32", version = "~4.1.0", default-features = false }
yastl = "0.1.2"
fil_logger = "0.1"
memmap = "0.7"
Expand All @@ -56,8 +56,8 @@ rand_xorshift = "0.3.0"
criterion = "0.3.2"
glob = "0.3.0"
pretty_env_logger = "0.4.0"
filecoin-hashers = { path = "../filecoin-hashers", version = "^6.0.0", default-features = false, features = ["poseidon", "sha256", "blake2s"]}
storage-proofs-porep = { path = "../storage-proofs-porep", version = "^11.0.0", default-features = false }
filecoin-hashers = { path = "../filecoin-hashers", version = "~6.1.0", default-features = false, features = ["poseidon", "sha256", "blake2s"]}
storage-proofs-porep = { path = "../storage-proofs-porep", version = "~11.1.0", default-features = false }

[features]
default = ["opencl", "multicore-sdr"]
Expand Down

0 comments on commit 54bda68

Please sign in to comment.