From 69451531bd1d0026edc8763e97fac861ca4f4e34 Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Tue, 5 May 2020 14:30:08 +0200 Subject: [PATCH] Workaround rust-crypto requiring AVX2 instructions (see #7) For workaround see https://github.com/librespot-org/librespot/issues/128 --- Cargo.lock | 9 ++++++++- Cargo.toml | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 1257f0e..f726dc2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1038,7 +1038,7 @@ dependencies = [ [[package]] name = "rust-crypto" version = "0.2.36" -source = "registry+https://github.com/rust-lang/crates.io-index" +source = "git+https://github.com/awmath/rust-crypto.git?branch=avx2#394c247254dbe2ac5d44483232cf335d10cf0260" dependencies = [ "gcc 0.3.55 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.68 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1047,6 +1047,12 @@ dependencies = [ "time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "rust-crypto" +version = "0.2.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +replace = "rust-crypto 0.2.36 (git+https://github.com/awmath/rust-crypto.git?branch=avx2)" + [[package]] name = "rustc-hash" version = "1.1.0" @@ -1560,6 +1566,7 @@ dependencies = [ "checksum regex-syntax 0.6.17 (registry+https://github.com/rust-lang/crates.io-index)" = "7fe5bd57d1d7414c6b5ed48563a2c855d995ff777729dcd91c369ec7fea395ae" "checksum remove_dir_all 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "4a83fa3702a688b9359eccba92d153ac33fd2e8462f9e0e3fdf155239ea7792e" "checksum rtp 0.1.0 (git+https://github.com/johni0702/rtp?rev=1444b3c)" = "" +"checksum rust-crypto 0.2.36 (git+https://github.com/awmath/rust-crypto.git?branch=avx2)" = "" "checksum rust-crypto 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)" = "f76d05d3993fd5f4af9434e8e436db163a12a9d40e1a58a726f27a01dfd12a2a" "checksum rustc-hash 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" "checksum rustc-serialize 0.3.24 (registry+https://github.com/rust-lang/crates.io-index)" = "dcf128d1287d2ea9d80910b5f1120d0b8eede3fbf1abe91c40d39ea7d51e6fda" diff --git a/Cargo.toml b/Cargo.toml index 118a6b4..0734152 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,3 +21,6 @@ rtp = { git = "https://github.com/johni0702/rtp", rev = "1444b3c", features = [" libnice = "0.2" webrtc-sdp = "0.3" openssl = "0.10" + +[replace] +"rust-crypto:0.2.36" = { git = "https://github.com/awmath/rust-crypto.git", branch = "avx2" }