summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Vander Stoep <jeffv@google.com>2022-12-19 08:10:08 +0100
committerJeff Vander Stoep <jeffv@google.com>2022-12-19 08:10:54 +0100
commit28fb056756f550ab76966844a1c2e5860e91929b (patch)
treecf15a637d196a1ab52d708b7f30924c380d43778
parented53a0a3ca06ef34aaaba658af1f7124a2850637 (diff)
downloadppv-lite86-28fb056756f550ab76966844a1c2e5860e91929b.tar.gz
Upgrade ppv-lite86 to 0.2.17main-16k-with-phones
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 Test: TreeHugger Change-Id: Ic34412db9b8cd3dee97b08fbfdebab32c973e836
-rw-r--r--.cargo_vcs_info.json2
-rw-r--r--Android.bp4
-rw-r--r--Cargo.toml14
-rw-r--r--Cargo.toml.orig4
-rw-r--r--METADATA12
-rw-r--r--src/lib.rs8
6 files changed, 28 insertions, 16 deletions
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 @@ rust_library {
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 @@ rust_test {
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 @@ default = ["std"]
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 @@ travis-ci = { repository = "cryptocorrosion/cryptocorrosion" }
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 @@ third_party {
}
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 soft;
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};