[package]
edition = "2024"
name = "bhook"
version = "0.1.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lightweight hook crate with no_std support that works on x86, x86_64, arm and aarch64"
readme = "README.md"
keywords = [
"hooking",
"detour",
"function",
"nostd",
"intercept",
]
categories = ["no-std"]
license = "CC0-1.0"
repository = "https://github.com/mcbegamerxx954/bhook"
[features]
cache_cleaning = ["dep:clear-cache"]
default = [
"std",
"cache_cleaning",
]
std = ["dep:region"]
[lib]
name = "bhook"
path = "src/lib.rs"
[[test]]
name = "hooktest"
path = "tests/hooktest.rs"
[dependencies.clear-cache]
version = "0.1.2"
optional = true
[dependencies.region]
version = "3.0.2"
optional = true