Skip to content

Commit

Permalink
fix: replace miden-test-utils dependency in mock with winter-rand-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbinth committed Feb 28, 2024
1 parent 4f7c7a0 commit 6da337c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
6 changes: 3 additions & 3 deletions mock/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ clap = { version = "4.4", features = ["derive"], optional = true }
env_logger = { version = "0.11" }
hex = "0.4"
miden-lib = { path = "../miden-lib" }
miden-objects = { path = "../objects" , features = ["serde", "log", "testing"]}
miden-test-utils = { package = "miden-test-utils", git = "https://github.com/0xPolygonMiden/miden-vm", branch = "next", default-features = false }
miden-objects = { path = "../objects" , features = ["serde", "log", "testing"] }
postcard = { version = "1.0", features = [ "alloc" ] }
rand = { version = "0.8" }
rand_pcg = { version = "0.3", features = ["serde1"] }
serde = { version = "1.0", optional = true, default-features = false, features = ["derive"] }
vm-processor = { workspace = true }
vm-processor = { workspace = true, features = ["internals"] }
rand-utils = { package = "winter-rand-utils", version = "0.8" }
4 changes: 1 addition & 3 deletions mock/src/mock/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ use miden_objects::{
accounts::Account, crypto::merkle::SimpleSmt, BlockHeader, Digest, Felt, ACCOUNT_TREE_DEPTH,
ZERO,
};
use miden_test_utils::rand;

use crate::utils::collections::*;
use rand_utils as rand;

pub fn mock_block_header(
block_num: u32,
Expand Down
2 changes: 1 addition & 1 deletion mock/src/mock/mmr_peaks.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use miden_test_utils::crypto::MmrPeaks;
use miden_objects::crypto::merkle::MmrPeaks;

pub fn empty_mmr_peaks() -> MmrPeaks {
MmrPeaks::new(0, Vec::new()).unwrap()
Expand Down
4 changes: 1 addition & 3 deletions objects/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,5 @@ vm-core = { package = "miden-core", version = "0.8", default-features = false }
vm-processor = { workspace = true }

[dev-dependencies]
criterion = { version = "0.5", default-features = false, features = [
"html_reports",
] }
criterion = { version = "0.5", default-features = false, features = ["html_reports"] }
tempfile = { version = "3.0" }

0 comments on commit 6da337c

Please sign in to comment.