hooking 0.7.0

cross platform detour / hooking library in rust
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "hooking"
version = "0.7.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "cross platform detour / hooking library in rust"
readme = "README.md"
license = "MIT"
repository = "https://github.com/pigeonhands/hooking-rs"
resolver = "2"

[features]
default = ["macros"]
macros = ["hooking_macros"]

[lib]
name = "hooking"
path = "src/lib.rs"

[[example]]
name = "custom_arena"
path = "examples/custom_arena.rs"

[[example]]
name = "hook_kind"
path = "examples/hook_kind.rs"

[[example]]
name = "hook_msgboxa"
path = "examples/hook_msgboxa.rs"

[[example]]
name = "hook_puts"
path = "examples/hook_puts.rs"

[[example]]
name = "macro_original_function_ptr"
path = "examples/macro_original_function_ptr.rs"

[[example]]
name = "macros"
path = "examples/macros.rs"

[[example]]
name = "mini_hook"
path = "examples/mini_hook.rs"

[[example]]
name = "mini_hook_macro"
path = "examples/mini_hook_macro.rs"

[[example]]
name = "original_function_ptr"
path = "examples/original_function_ptr.rs"

[[example]]
name = "save_registers"
path = "examples/save_registers.rs"

[[example]]
name = "skip_original"
path = "examples/skip_original.rs"

[[example]]
name = "write_hook_table"
path = "examples/write_hook_table.rs"

[[test]]
name = "high_traffic"
path = "tests/high_traffic.rs"

[[test]]
name = "hook"
path = "tests/hook.rs"

[[test]]
name = "hook_kind"
path = "tests/hook_kind.rs"

[[test]]
name = "mini_hook"
path = "tests/mini_hook.rs"

[[test]]
name = "save_registers"
path = "tests/save_registers.rs"

[dependencies.ctor]
version = "1.0.7"

[dependencies.hooking_macros]
version = "0.7"
optional = true

[dependencies.iced-x86]
version = "1.21"
features = [
    "std",
    "decoder",
    "encoder",
    "block_encoder",
    "code_asm",
    "instr_info",
]
default-features = false

[dependencies.thiserror]
version = "2.0.18"

[dev-dependencies.iced-x86]
version = "1.21"
features = [
    "std",
    "decoder",
    "intel",
]
default-features = false

[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2.182"

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61.2"
features = [
    "Win32_Foundation",
    "Win32_Security",
    "Win32_System_Diagnostics_Debug",
    "Win32_System_Memory",
    "Win32_System_SystemInformation",
    "Win32_System_LibraryLoader",
    "Win32_System_Threading",
]