diff --git a/Cargo.lock b/Cargo.lock index 5a0b9c64..eebc77af 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -25,7 +25,7 @@ version = "0.0.2" [[package]] name = "cpuid-bool" -version = "0.1.1" +version = "0.1.0" [[package]] name = "dbl" diff --git a/cpuid-bool/CHANGELOG.md b/cpuid-bool/CHANGELOG.md deleted file mode 100644 index 3506aa6a..00000000 --- a/cpuid-bool/CHANGELOG.md +++ /dev/null @@ -1,15 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## 0.1.0 (2020-07-14) -### Fixed -- SGX target support ([#67]) - -[#67]: https://github.com/RustCrypto/utils/pull/67 - -## 0.1.0 (2020-06-11) -- Initial release \ No newline at end of file diff --git a/cpuid-bool/Cargo.toml b/cpuid-bool/Cargo.toml index 50c5e18f..babd71fa 100644 --- a/cpuid-bool/Cargo.toml +++ b/cpuid-bool/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cpuid-bool" -version = "0.1.1" +version = "0.1.0" authors = ["RustCrypto Developers"] license = "MIT OR Apache-2.0" description = "A lightweight no-std compatible alternative to is_x86_feature_detected" diff --git a/cpuid-bool/src/lib.rs b/cpuid-bool/src/lib.rs index d406efcc..809565c6 100644 --- a/cpuid-bool/src/lib.rs +++ b/cpuid-bool/src/lib.rs @@ -92,8 +92,7 @@ expand_check_macro! { #[macro_export] macro_rules! cpuid_bool { ($($tf:tt),+ $(,)? ) => {{ - // CPUID is not available on SGX targets - #[cfg(not(all(not(target_env = "sgx"), $(target_feature=$tf, )*)))] + #[cfg(not(all($(target_feature=$tf, )*)))] let res = { #[cfg(target_arch = "x86")] use core::arch::x86::{__cpuid, __cpuid_count};