Skip to content

Commit

Permalink
chore: fix nova-snark, only use asm feature on arch x86_64 (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanKung authored Mar 29, 2024
1 parent ce2973a commit b308061
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions crates/snark/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ thiserror = "1"

eyre = "0.6.11"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
[target.'cfg(target_arch = "x86_64")'.dependencies]
nova-snark = { version = "0.35" }
wasmer = "4.2.5"
wasmer-compiler-llvm = { version = "4.1.1", optional = true }

[target.'cfg(target_arch = "wasm32")'.dependencies]
[target.'cfg(not(target_arch = "x86_64"))'.dependencies]
nova-snark = { version = "0.35", features = ["portable"], default-features = false }

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasmer = { version = "4.2.5", features = ["js-default"], default-features = false }
wasm-bindgen = { workspace = true, features = ["serde-serialize"] }
wasm-bindgen-test = { version = "0.3.0" }

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
wasmer = "4.2.5"
wasmer-compiler-llvm = { version = "4.1.1", optional = true }
memory-stats = "1.0.0"
tokio = { version = "1.13.0", features = ["full"] }

[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen = { workspace = true, features = ["serde-serialize"] }
wasm-bindgen-test = { version = "0.3.0" }

0 comments on commit b308061

Please sign in to comment.