Skip to content

Commit

Permalink
fix: choose RPC structs based on std (#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
igamigo authored Nov 8, 2024
1 parent 4484212 commit 9a73fac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bin/tx-prover/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "miden-tx-prover"
version = "0.6.1"
version = "0.6.2"
description = "Miden rollup transaction prover"
readme = "README.md"
keywords = ["miden", "transaction"]
Expand Down
7 changes: 5 additions & 2 deletions bin/tx-prover/src/generated/mod.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
use miden_objects::transaction::ProvenTransaction;
use miden_tx::utils::{Deserializable, DeserializationError, Serializable};

#[cfg(all(feature = "std", target_arch = "wasm32"))]
compile_error!("The `std` feature cannot be used when targeting `wasm32`.");

#[cfg(feature = "std")]
mod std;
#[cfg(feature = "std")]
pub use std::api::*;

#[cfg(target_arch = "wasm32")]
#[cfg(not(feature = "std"))]
mod nostd;
#[cfg(target_arch = "wasm32")]
#[cfg(not(feature = "std"))]
pub use nostd::api::*;

// CONVERSIONS
Expand Down

0 comments on commit 9a73fac

Please sign in to comment.