@@ -52,7 +52,7 @@ pub mod error;
/// Call parameters definitions
pub mod model;
-#[cfg(not(feature = "no-entrypoint"))]
+#[cfg(all(not(feature = "no-entrypoint"), target_arch = "wasm32"))]
/// WASM entrypoint functions
pub mod entrypoint;
@@ -40,7 +40,7 @@ impl TryFrom<u8> for DeployFunction {
}
@@ -63,7 +63,7 @@ pub mod error;
@@ -75,7 +75,7 @@ mod test;
pub mod util;
pub use util::Poseidon;
-#[cfg(feature = "wasm")]
+#[cfg(all(feature = "wasm", target_arch = "wasm32"))]
pub mod wasmdb;
// Bit size for Fp (and Fq)
@@ -17,13 +17,16 @@
*/
/// Database functions
+#[cfg(target_arch = "wasm32")]
pub mod db;
/// Entrypoint used for the wasm binaries
/// Merkle
pub mod merkle;
/// Utility functions