From 895beac5f4fb195782170dd03901525954895c78 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Tue, 20 Jan 2026 22:08:02 -0700 Subject: [PATCH] cpubits v0.1.0-pre.3 --- Cargo.lock | 2 +- cpubits/Cargo.toml | 2 +- cpubits/src/lib.rs | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 21b77be0..5276e224 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -68,7 +68,7 @@ version = "0.1.0" [[package]] name = "cpubits" -version = "0.1.0-pre.2" +version = "0.1.0-pre.3" [[package]] name = "cpufeatures" diff --git a/cpubits/Cargo.toml b/cpubits/Cargo.toml index f8940438..4be71a3a 100644 --- a/cpubits/Cargo.toml +++ b/cpubits/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cpubits" -version = "0.1.0-pre.2" +version = "0.1.0-pre.3" authors = ["RustCrypto Developers"] license = "MIT OR Apache-2.0" documentation = "https://docs.rs/cpubits" diff --git a/cpubits/src/lib.rs b/cpubits/src/lib.rs index 55b7b5d5..55be2179 100644 --- a/cpubits/src/lib.rs +++ b/cpubits/src/lib.rs @@ -35,10 +35,13 @@ // itself so we can re-export it, and people can easily get to these docs from the re-exported // version. +/// A macro for defining code based on the optimal word size to use for the target, as chosen +/// heuristically at compile-time using `cfg`-based predicates. +/// /// # Usage /// -/// The macro works sort of like a `match` expression that takes an implicit number of CPU bits, -/// which is one of `16`, `32`, or `64`. +/// The macro works like a `match` expression that takes an implicit argument representing the +/// number of CPU bits, which is one of `16`, `32`, or `64`. /// /// Use this macro to conditionally emit code specific to certain CPU word sizes, e.g. defining /// types at compile-time based on the word size.