Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename cpuid-bool to cpufeatures #381

Merged
merged 1 commit into from
Apr 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: cpuid-bool
name: cpufeatures

on:
pull_request:
paths:
- "cpuid-bool/**"
- "cpufeatures/**"
- "Cargo.*"
push:
branches: master

defaults:
run:
working-directory: cpuid-bool
working-directory: cpufeatures

env:
CARGO_INCREMENTAL: 0
Expand Down
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ members = [
"block-padding",
"collectable",
"const-oid",
"cpuid-bool",
"cpufeatures",
"dbl",
"der",
"der/derive",
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions cpuid-bool/Cargo.toml → cpufeatures/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "cpuid-bool"
version = "0.2.0" # Also update html_root_url in lib.rs when bumping this
name = "cpufeatures"
version = "0.0.0" # Also update html_root_url in lib.rs when bumping this
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "A lightweight and efficient no-std compatible alternative to the is_x86_feature_detected macro"
documentation = "https://docs.rs/cpuid-bool"
documentation = "https://docs.rs/cpufeatures"
repository = "https://github.com/RustCrypto/utils"
keywords = ["cpuid", "target-feature"]
categories = ["no-std"]
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions cpuid-bool/src/lib.rs → cpufeatures/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! # Example
//! ```
//! // This macro creates `cpuid_aes_sha` module
//! cpuid_bool::new!(cpuid_aes_sha, "aes", "sha");
//! cpufeatures::new!(cpuid_aes_sha, "aes", "sha");
//!
//! // `token` is a Zero Sized Type value, which guarantees
//! // that underlying static storage got properly initialized,
Expand Down Expand Up @@ -35,7 +35,7 @@
#![doc(
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg",
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg",
html_root_url = "https://docs.rs/cpuid-bool/0.2.0"
html_root_url = "https://docs.rs/cpufeatures/0.0.0"
)]

#[cfg(not(any(target_arch = "x86", target_arch = "x86_64")))]
Expand Down Expand Up @@ -89,7 +89,7 @@ macro_rules! new {
let cr = unsafe {
[__cpuid(1), __cpuid_count(7, 0)]
};
let res = $(cpuid_bool::check!(cr, $tf) & )+ true;
let res = $(cpufeatures::check!(cr, $tf) & )+ true;
STORAGE.store(res as u8, Relaxed);
res
} else {
Expand Down