Update to reed-solomon-erasure 5.0.1, to get simd-accel on M1 macs

This commit is contained in:
Michael Vines
2021-12-17 11:19:02 -08:00
parent 68a2570ebd
commit 5f054cd51b
2 changed files with 19 additions and 11 deletions

View File

@@ -51,14 +51,7 @@ thiserror = "1.0"
tokio = { version = "1", features = ["full"] }
tokio-stream = "0.1"
trees = "0.4.2"
# Disable reed-solomon-erasure/simd-accel feature on aarch64 only since it
# requires clang to support -march=native.
[target.'cfg(any(target_arch = "aarch64", target_arch = "aarch64_apple_darwin"))'.dependencies]
reed-solomon-erasure = { version = "4.0.2" }
[target.'cfg(not(any(target_arch = "aarch64", target_arch = "aarch64_apple_darwin")))'.dependencies]
reed-solomon-erasure = { version = "4.0.2", features = ["simd-accel"] }
reed-solomon-erasure = { version = "5.0.1", features = ["simd-accel"] }
[dependencies.rocksdb]
# Avoid the vendored bzip2 within rocksdb-sys that can cause linker conflicts