Skip to content

Commit c02d323

Browse files
Copilotsrinathsetty
andcommitted
Move target-specific halo2curves to dependencies section and remove extra newline
Co-authored-by: srinathsetty <14947526+srinathsetty@users.noreply.github.com>
1 parent 6ae15d2 commit c02d323

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

Cargo.toml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,19 @@ flate2 = "1.0"
3030
bitvec = "1.0"
3131
byteorder = "1.4.3"
3232
thiserror = "2.0.12"
33-
3433
group = "0.13.0"
3534
once_cell = "1.18.0"
3635
tracing = "0.1"
3736
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "time"] }
3837
tikv-jemallocator = { version = "0.6.0", optional = true }
3938

39+
# Use halo2curves ASM on x86_64 by default; disable ASM on non-x86_64
40+
[target.'cfg(target_arch = "x86_64")'.dependencies]
41+
halo2curves = { version = "0.9.0", features = ["std", "bits", "derive_serde", "asm"] }
42+
43+
[target.'cfg(not(target_arch = "x86_64"))'.dependencies]
44+
halo2curves = { version = "0.9.0", features = ["std", "bits", "derive_serde"] }
45+
4046
[target.wasm32-unknown-unknown.dependencies]
4147
# see https://github.com/rust-random/rand/pull/948
4248
getrandom = { version = "0.2.0", default-features = false, features = ["js"] }
@@ -56,10 +62,3 @@ jem = ["tikv-jemallocator"]
5662
[profile.release]
5763
debug = 1
5864
lto = "fat"
59-
60-
# Use halo2curves ASM on x86_64 by default; disable ASM on non-x86_64
61-
[target.'cfg(target_arch = "x86_64")'.dependencies]
62-
halo2curves = { version = "0.9.0", features = ["std", "bits", "derive_serde", "asm"] }
63-
64-
[target.'cfg(not(target_arch = "x86_64"))'.dependencies]
65-
halo2curves = { version = "0.9.0", features = ["std", "bits", "derive_serde"] }

0 commit comments

Comments
 (0)