Upgrade ppv-lite86 to 0.2.17 am: 28fb056756

Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ppv-lite86/+/2363699

Change-Id: I32f74837a9188a0d7c1045322f43fb1c36971a98
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json
index e6ee0e5..4da2d23 100644
--- a/.cargo_vcs_info.json
+++ b/.cargo_vcs_info.json
@@ -1,6 +1,6 @@
 {
   "git": {
-    "sha1": "4b1e1d655d05c9da29aa833ce705feedb3da760b"
+    "sha1": "325fd94cf15c0abfcc5b4631993b48abcf0f1cf1"
   },
   "path_in_vcs": "utils-simd/ppv-lite86"
 }
\ No newline at end of file
diff --git a/Android.bp b/Android.bp
index eb5d6df..5e8eaa7 100644
--- a/Android.bp
+++ b/Android.bp
@@ -42,7 +42,7 @@
     host_supported: true,
     crate_name: "ppv_lite86",
     cargo_env_compat: true,
-    cargo_pkg_version: "0.2.16",
+    cargo_pkg_version: "0.2.17",
     srcs: ["src/lib.rs"],
     edition: "2018",
     features: [
@@ -61,7 +61,7 @@
     host_supported: true,
     crate_name: "ppv_lite86",
     cargo_env_compat: true,
-    cargo_pkg_version: "0.2.16",
+    cargo_pkg_version: "0.2.17",
     srcs: ["src/lib.rs"],
     test_suites: ["general-tests"],
     auto_gen_config: true,
diff --git a/Cargo.toml b/Cargo.toml
index 927ecfe..4b5b14e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,11 +12,18 @@
 [package]
 edition = "2018"
 name = "ppv-lite86"
-version = "0.2.16"
+version = "0.2.17"
 authors = ["The CryptoCorrosion Contributors"]
 description = "Implementation of the crypto-simd API for x86"
-keywords = ["crypto", "simd", "x86"]
-categories = ["cryptography", "no-std"]
+keywords = [
+    "crypto",
+    "simd",
+    "x86",
+]
+categories = [
+    "cryptography",
+    "no-std",
+]
 license = "MIT/Apache-2.0"
 repository = "https://github.com/cryptocorrosion/cryptocorrosion"
 
@@ -27,5 +34,6 @@
 no_simd = []
 simd = []
 std = []
+
 [badges.travis-ci]
 repository = "cryptocorrosion/cryptocorrosion"
diff --git a/Cargo.toml.orig b/Cargo.toml.orig
index b457f54..a4497f8 100644
--- a/Cargo.toml.orig
+++ b/Cargo.toml.orig
@@ -1,6 +1,6 @@
 [package]
 name = "ppv-lite86"
-version = "0.2.16"
+version = "0.2.17"
 authors = ["The CryptoCorrosion Contributors"]
 edition = "2018"
 license = "MIT/Apache-2.0"
@@ -18,4 +18,4 @@
 default = ["std"]
 std = []
 simd = [] # deprecated
-no_simd = [] # for weird platforms like "x86_64 without SSE2"
+no_simd = []
diff --git a/METADATA b/METADATA
index 95596fd..ecc14e6 100644
--- a/METADATA
+++ b/METADATA
@@ -1,3 +1,7 @@
+# This project was upgraded with external_updater.
+# Usage: tools/external_updater/updater.sh update rust/crates/ppv-lite86
+# For more info, check https://cs.android.com/android/platform/superproject/+/master:tools/external_updater/README.md
+
 name: "ppv-lite86"
 description: "Implementation of the crypto-simd API for x86"
 third_party {
@@ -7,13 +11,13 @@
   }
   url {
     type: ARCHIVE
-    value: "https://static.crates.io/crates/ppv-lite86/ppv-lite86-0.2.16.crate"
+    value: "https://static.crates.io/crates/ppv-lite86/ppv-lite86-0.2.17.crate"
   }
-  version: "0.2.16"
+  version: "0.2.17"
   license_type: NOTICE
   last_upgrade_date {
     year: 2022
-    month: 3
-    day: 1
+    month: 12
+    day: 19
   }
 }
diff --git a/src/lib.rs b/src/lib.rs
index a4fbabe..1bc27e0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -12,14 +12,14 @@
 mod types;
 pub use self::types::*;
 
-#[cfg(all(target_arch = "x86_64", not(feature = "no_simd"), not(miri)))]
+#[cfg(all(target_arch = "x86_64", target_feature = "sse2", not(feature = "no_simd"), not(miri)))]
 pub mod x86_64;
-#[cfg(all(target_arch = "x86_64", not(feature = "no_simd"), not(miri)))]
+#[cfg(all(target_arch = "x86_64", target_feature = "sse2", not(feature = "no_simd"), not(miri)))]
 use self::x86_64 as arch;
 
-#[cfg(any(feature = "no_simd", miri, not(target_arch = "x86_64")))]
+#[cfg(any(feature = "no_simd", miri, not(target_arch = "x86_64"), all(target_arch = "x86_64", not(target_feature = "sse2"))))]
 pub mod generic;
-#[cfg(any(feature = "no_simd", miri, not(target_arch = "x86_64")))]
+#[cfg(any(feature = "no_simd", miri, not(target_arch = "x86_64"), all(target_arch = "x86_64", not(target_feature = "sse2"))))]
 use self::generic as arch;
 
 pub use self::arch::{vec128_storage, vec256_storage, vec512_storage};