Skip to content

Commit 1f2bdb0

Browse files
authored
cpubits v0.1.0-pre.3 (#1420)
1 parent 88edf14 commit 1f2bdb0

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cpubits/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cpubits"
3-
version = "0.1.0-pre.2"
3+
version = "0.1.0-pre.3"
44
authors = ["RustCrypto Developers"]
55
license = "MIT OR Apache-2.0"
66
documentation = "https://docs.rs/cpubits"

cpubits/src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,13 @@
3535
// itself so we can re-export it, and people can easily get to these docs from the re-exported
3636
// version.
3737

38+
/// A macro for defining code based on the optimal word size to use for the target, as chosen
39+
/// heuristically at compile-time using `cfg`-based predicates.
40+
///
3841
/// # Usage
3942
///
40-
/// The macro works sort of like a `match` expression that takes an implicit number of CPU bits,
41-
/// which is one of `16`, `32`, or `64`.
43+
/// The macro works like a `match` expression that takes an implicit argument representing the
44+
/// number of CPU bits, which is one of `16`, `32`, or `64`.
4245
///
4346
/// Use this macro to conditionally emit code specific to certain CPU word sizes, e.g. defining
4447
/// types at compile-time based on the word size.

0 commit comments

Comments
 (0)