Skip to content
Open
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
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,12 @@ jobs:

- uses: Swatinem/rust-cache@v2

- run: cargo +"$MSRV" build --package multihash
# Only the multihash core crate is bound to the MSRV. Currently it's so old that the
# dependency resoluton doesn't quite work. Hence remove all other workspace members.
- name: Build
run: |
sed --in-place '/^members/d' Cargo.toml
cargo +"$MSRV" build --package multihash
coverage:
name: Code Coverage
Expand Down
5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ serde = ["dep:serde"]
[dependencies]
parity-scale-codec = { version = "3.0.0", default-features = false, features = ["derive"], optional = true }
quickcheck = { version = "1.0.3", optional = true }
rand = { version = "0.9.2", optional = true, features = ["small_rng"] }
rand = { version = "0.10", default-features = false, features = ["alloc"], optional = true }
serde = { version = "1.0.116", optional = true, default-features = false }
unsigned-varint = { version = "0.8.0", default-features = false }
arbitrary = { version = "1.1.0", optional = true }
Expand All @@ -40,7 +40,4 @@ core2 = { version = "0.4.0", default-features = false }
[dev-dependencies]
hex = "0.4.2"
serde_json = "1.0.58"
quickcheck = "1.0.3"
rand = "0.9.2"
arbitrary = "1.1.0"
serde_test = "1.0.160"
2 changes: 1 addition & 1 deletion codetable/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ arbitrary = { version = "1.3.2", optional = true, features = ["derive"] }
hex = "0.4.2"
unsigned-varint = { version = "0.8.0", default-features = false }
criterion = "0.8"
rand = "0.9.2"
rand = "0.10"

[[bench]]
name = "multihash"
Expand Down
2 changes: 1 addition & 1 deletion codetable/benches/multihash.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::hint::black_box;

use criterion::{criterion_group, criterion_main, Criterion};
use rand::Rng;
use rand::RngExt;

use multihash_codetable::{
Blake2b256, Blake2b512, Blake2s128, Blake2s256, Blake3_256, Keccak224, Keccak256, Keccak384,
Expand Down
2 changes: 1 addition & 1 deletion src/arb.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use quickcheck::Gen;
use rand::{
distr::{weighted::WeightedIndex, Distribution},
Rng, RngCore, SeedableRng,
Rng, RngExt, SeedableRng,
};

use crate::Multihash;
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#[cfg(feature = "alloc")]
extern crate alloc;

#[cfg(any(test, feature = "arb"))]
#[cfg(feature = "arb")]
mod arb;
mod error;
mod multihash;
Expand Down