[package]
edition = "2018"
rust-version = "1.59"
name = "branches"
version = "0.4.5"
authors = ["Khashayar Fereidani"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Branch hinting prediction and control functions for stable Rust including likely, unlikely, assume and abort, plus read and write cpu prefetch functions to help algorithm optimization"
documentation = "https://docs.rs/branches"
readme = "README.md"
keywords = [
"branch",
"likely",
"unlikely",
"no_std",
"optimization",
]
categories = ["no-std"]
license = "MIT"
repository = "https://github.com/fereidani/branches"
[features]
default = [
"std",
"prefetch",
]
prefetch = []
std = []
[lib]
name = "branches"
path = "src/lib.rs"
[[example]]
name = "instantiate_all"
path = "examples/instantiate_all.rs"
[[test]]
name = "default"
path = "tests/default.rs"
[[test]]
name = "prefetch"
path = "tests/prefetch.rs"
[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false
[dev-dependencies.criterion]
version = "0.8"
[build-dependencies.rustc_version]
version = "0.4"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(branches_stable)",
"cfg(branches_nightly)",
"cfg(rustc_ge_1_81_0)",
"cfg(rustc_ge_1_95_0)",
"cfg(branches_check_asm)",
]