Crates.io | safe_arch |
lib.rs | safe_arch |
version | 0.7.2 |
source | src |
created_at | 2020-04-29 02:53:57.692152 |
updated_at | 2024-06-17 05:48:12.078328 |
description | Crate that exposes `core::arch` safely via `#[cfg()]`. |
homepage | |
repository | https://github.com/Lokathor/safe_arch |
max_upload_size | |
id | 235203 |
size | 574,787 |
Exposes arch-specific intrinsics as safe function.
pub
field) and given appropriate trait
impls such as From
, Into
, Default
, etc.All function and macro availability is done purely at compile time via
#[cfg()]
attributes on the various modules. If a CPU feature isn't enabled for
the build then those functions or macros won't be available. If you'd like to
determine what CPU features are available at runtime and then call different
code accordingly, this crate is not for you.
See the crate docs for more details.