Skip to content

Commit b2d97b2

Browse files
authored
Rename cpuid-bool to cpufeatures (#381)
If we plan on expanding this crate to include `aarch64` targets, it seems like a more general name would make sense.
1 parent 90a8546 commit b2d97b2

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

.github/workflows/cpuid-bool.yml renamed to .github/workflows/cpufeatures.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
name: cpuid-bool
1+
name: cpufeatures
22

33
on:
44
pull_request:
55
paths:
6-
- "cpuid-bool/**"
6+
- "cpufeatures/**"
77
- "Cargo.*"
88
push:
99
branches: master
1010

1111
defaults:
1212
run:
13-
working-directory: cpuid-bool
13+
working-directory: cpufeatures
1414

1515
env:
1616
CARGO_INCREMENTAL: 0

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ members = [
66
"block-padding",
77
"collectable",
88
"const-oid",
9-
"cpuid-bool",
9+
"cpufeatures",
1010
"dbl",
1111
"der",
1212
"der/derive",
File renamed without changes.

cpuid-bool/Cargo.toml renamed to cpufeatures/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
2-
name = "cpuid-bool"
3-
version = "0.2.0" # Also update html_root_url in lib.rs when bumping this
2+
name = "cpufeatures"
3+
version = "0.0.0" # Also update html_root_url in lib.rs when bumping this
44
authors = ["RustCrypto Developers"]
55
license = "MIT OR Apache-2.0"
66
description = "A lightweight and efficient no-std compatible alternative to the is_x86_feature_detected macro"
7-
documentation = "https://docs.rs/cpuid-bool"
7+
documentation = "https://docs.rs/cpufeatures"
88
repository = "https://github.com/RustCrypto/utils"
99
keywords = ["cpuid", "target-feature"]
1010
categories = ["no-std"]
File renamed without changes.
File renamed without changes.

cpuid-bool/src/lib.rs renamed to cpufeatures/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! # Example
44
//! ```
55
//! // This macro creates `cpuid_aes_sha` module
6-
//! cpuid_bool::new!(cpuid_aes_sha, "aes", "sha");
6+
//! cpufeatures::new!(cpuid_aes_sha, "aes", "sha");
77
//!
88
//! // `token` is a Zero Sized Type value, which guarantees
99
//! // that underlying static storage got properly initialized,
@@ -35,7 +35,7 @@
3535
#![doc(
3636
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg",
3737
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg",
38-
html_root_url = "https://docs.rs/cpuid-bool/0.2.0"
38+
html_root_url = "https://docs.rs/cpufeatures/0.0.0"
3939
)]
4040

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

0 commit comments

Comments
 (0)