diff --git a/Cargo.lock b/Cargo.lock index 071ecda09..26f6f7ff0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -519,9 +519,9 @@ checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" [[package]] name = "jobserver" -version = "0.1.30" +version = "0.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "685a7d121ee3f65ae4fddd72b25a04bb36b6af81bc0828f7d5434c0fe60fa3a2" +checksum = "d2b099aaa34a9751c5bf0878add70444e1ed2dd73f347be99003d4577277de6e" dependencies = [ "libc", ] @@ -1003,9 +1003,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.32" +version = "0.38.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65e04861e65f21776e67888bfbea442b3642beaa0138fdb1dd7a84a52dffdb89" +checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" dependencies = [ "bitflags", "errno", diff --git a/Makefile.toml b/Makefile.toml index e270a0a69..0df9a2811 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -99,7 +99,7 @@ args = ["build", "--no-default-features", "--target", "wasm32-unknown-unknown", description = "Run all available transaction benchmarks" workspace = false command = "cargo" -args = ["run", "--bin", "bench-tx"] +args = ["run", "--bin", "bench-tx", "--features", "std"] # --- utilities ----------------------------------------------------------------------------------- [tasks.watch] diff --git a/bench-tx/Cargo.toml b/bench-tx/Cargo.toml index 97063312f..d3e0db43d 100644 --- a/bench-tx/Cargo.toml +++ b/bench-tx/Cargo.toml @@ -12,11 +12,15 @@ exclude.workspace = true [[bin]] name = "bench-tx" path = "src/main.rs" +required-features = ["std"] + +[features] +std = ["mock/std"] [dependencies] miden-lib = { package = "miden-lib", path = "../miden-lib", version = "0.3" } miden-objects = { package = "miden-objects", path = "../objects", version = "0.3" } miden-tx = { package = "miden-tx", path = "../miden-tx", version = "0.3" } -mock = { package = "miden-mock", path = "../mock", features = ["std"] } +mock = { package = "miden-mock", path = "../mock", features = ["std"], optional = true } serde_json = { package = "serde_json", version = "1.0" } vm-processor = { workspace = true } diff --git a/bench-tx/src/bench-tx.json b/bench-tx/src/bench-tx.json index 440518746..d665e4734 100644 --- a/bench-tx/src/bench-tx.json +++ b/bench-tx/src/bench-tx.json @@ -17,7 +17,7 @@ "0x8a55c3531cdd5725aa805475093ed3006c6773b71a008e8ca840da8364a67cd6": 713 }, { - "0xae832786b774651bb0e5b71615fcf9f01427c054a8919cda6d2fd4a0c8948167": 390 + "0x47b2fbff8a3f09e40343238e7b15c8918d7c63e570fd1b3c904ada458c4d74bd": 390 } ], "notes_processing": 1149, diff --git a/bench-tx/src/utils.rs b/bench-tx/src/utils.rs index d5d3d1611..3a4668390 100644 --- a/bench-tx/src/utils.rs +++ b/bench-tx/src/utils.rs @@ -238,10 +238,13 @@ pub fn get_account_with_default_account_code( let account_assembler = TransactionKernel::assembler(); let account_code = AccountCode::new(account_code_ast.clone(), &account_assembler).unwrap(); - let account_storage = AccountStorage::new(vec![SlotItem { - index: 0, - slot: StorageSlot::new_value(public_key), - }]) + let account_storage = AccountStorage::new( + vec![SlotItem { + index: 0, + slot: StorageSlot::new_value(public_key), + }], + vec![], + ) .unwrap(); let account_vault = match assets {