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

21
Cargo.lock generated
View File

@ -2362,6 +2362,12 @@ dependencies = [
"winapi 0.3.9",
]
[[package]]
name = "libm"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702a"
[[package]]
name = "librocksdb-sys"
version = "6.20.3"
@ -3716,13 +3722,16 @@ dependencies = [
[[package]]
name = "reed-solomon-erasure"
version = "4.0.2"
version = "5.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a415a013dd7c5d4221382329a5a3482566da675737494935cbbbcdec04662f9d"
checksum = "7170bac0d8306941e101df0caaa6518b10bc4232dd36c34f1cb78b8a063024db"
dependencies = [
"cc",
"libc",
"libm",
"parking_lot 0.11.2",
"smallvec 1.7.0",
"spin 0.9.2",
]
[[package]]
@ -3811,7 +3820,7 @@ dependencies = [
"cc",
"libc",
"once_cell",
"spin",
"spin 0.5.2",
"untrusted",
"web-sys",
"winapi 0.3.9",
@ -6213,6 +6222,12 @@ version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d"
[[package]]
name = "spin"
version = "0.9.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "511254be0c5bcf062b019a6c89c01a664aa359ded62f78aa72c6fc137c0590e5"
[[package]]
name = "spl-associated-token-account"
version = "1.0.3"

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