hudhook 0.8.0

A graphics API hook with dear imgui render loop. Supports DirectX 9, 11, 12, and OpenGL 3.
[build-dependencies.cc]
version = "1.0.72"

[build-dependencies.gl_generator]
optional = true
version = "0.14.0"

[dependencies.bitflags]
version = "2.5.0"

[dependencies.imgui]
version = "0.12"

[dependencies.once_cell]
default-features = false
version = "1.18.0"

[dependencies.parking_lot]
version = "0.12"

[dependencies.tracing]
default-features = false
features = ["log"]
version = "0.1"

[dependencies.tracing-subscriber]
default-features = false
features = ["env-filter"]
version = "0.3"

[dependencies.windows]
features = ["Foundation_Numerics", "Win32_Devices_HumanInterfaceDevice", "Win32_Foundation", "Win32_Graphics_Direct3D11", "Win32_Graphics_Direct3D12", "Win32_Graphics_Direct3D9", "Win32_Graphics_Direct3D_Fxc", "Win32_Graphics_Dxgi", "Win32_Graphics_Dxgi_Common", "Win32_Graphics_Gdi", "Win32_Graphics_OpenGL", "Win32_Security", "Win32_System_Com", "Win32_System_Console", "Win32_System_Diagnostics_Debug", "Win32_System_Diagnostics_ToolHelp", "Win32_System_LibraryLoader", "Win32_System_Memory", "Win32_System_SystemInformation", "Win32_System_SystemServices", "Win32_System_Threading", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_WindowsAndMessaging"]
version = "0.54.0"

[dev-dependencies.dotenv]
version = "0.15.0"

[dev-dependencies.image]
version = "0.24.8"

[dev-dependencies.tracing-subscriber]
version = "0.3"

[[example]]
crate-type = ["cdylib"]
name = "demo_hook_dx11"
path = "examples/demo_hook_dx11.rs"

[[example]]
crate-type = ["cdylib"]
name = "demo_hook_dx12"
path = "examples/demo_hook_dx12.rs"

[[example]]
crate-type = ["cdylib"]
name = "demo_hook_dx9"
path = "examples/demo_hook_dx9.rs"

[[example]]
crate-type = ["cdylib"]
name = "demo_hook_opengl3"
path = "examples/demo_hook_opengl3.rs"

[[example]]
crate-type = ["cdylib"]
name = "hook_with_image"
path = "examples/hook_with_image.rs"

[[example]]
crate-type = ["bin"]
name = "injector"
path = "examples/injector.rs"

[[example]]
crate-type = ["cdylib"]
name = "simple_hook"
path = "examples/simple_hook.rs"

[features]
default = ["dx9", "dx11", "dx12", "opengl3", "inject"]
dx11 = []
dx12 = []
dx9 = []
imgui-docking = ["imgui/docking"]
imgui-freetype = ["imgui/freetype"]
imgui-tables-api = ["imgui/tables-api"]
inject = []
opengl3 = ["dep:gl_generator"]

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

[package]
authors = ["Andrea Venuta <venutawebdesign@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = "build.rs"
description = "A graphics API hook with dear imgui render loop. Supports DirectX 9, 11, 12, and OpenGL 3."
documentation = "https://veeenu.github.io/hudhook"
edition = "2021"
homepage = "https://github.com/veeenu/hudhook"
license-file = "LICENSE"
name = "hudhook"
readme = "README.md"
repository = "https://github.com/veeenu/hudhook"
version = "0.8.0"

[package.metadata.docs.rs]
default-target = "x86_64-pc-windows-gnu"
targets = ["x86_64-pc-windows-msvc", "i686-pc-windows-msvc", "x86_64-pc-windows-gnu", "i686-pc-windows-gnu"]

[profile.test]
lto = "thin"
opt-level = 3
overflow-checks = false

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

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

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

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

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

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