forked from veeenu/hudhook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
108 lines (93 loc) · 2.5 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[package]
name = "hudhook"
version = "0.7.0"
edition = "2021"
description = "A graphics API hook with dear imgui render loop. Supports DirectX 9, 11, 12, and OpenGL 3."
homepage = "https://github.com/veeenu/hudhook"
repository = "https://github.com/veeenu/hudhook"
documentation = "https://veeenu.github.io/hudhook"
license-file = "LICENSE"
authors = ["Andrea Venuta <venutawebdesign@gmail.com>"]
[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"
]
[features]
default = ["dx9", "dx11", "dx12", "opengl3", "inject"]
dx9 = []
dx11 = []
dx12 = []
opengl3 = ["dep:gl_generator"]
inject = []
[[example]]
name = "simple_hook"
crate-type = ["cdylib"]
[[example]]
name = "hook_with_image"
crate-type = ["cdylib"]
[[example]]
name = "injector"
crate-type = ["bin"]
[[example]]
name = "demo_hook_dx12"
crate-type = ["cdylib"]
[[example]]
name = "demo_hook_dx11"
crate-type = ["cdylib"]
[[example]]
name = "demo_hook_dx9"
crate-type = ["cdylib"]
[[example]]
name = "demo_hook_opengl3"
crate-type = ["cdylib"]
[dependencies]
bitflags = "2.5.0"
imgui = "0.12"
memoffset = "0.9.0"
once_cell = { version = "1.18.0", default-features = false }
parking_lot = "0.12"
tracing = { version = "0.1", features = ["log"], default-features = false }
tracing-subscriber = { version = "0.3", features = ["env-filter"], default-features = false }
[dependencies.windows]
version = "0.54.0"
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_Console",
"Win32_System_Diagnostics_Debug",
"Win32_System_Diagnostics_ToolHelp",
"Win32_System_LibraryLoader",
"Win32_System_Memory",
"Win32_System_SystemServices",
"Win32_System_Threading",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_UI_WindowsAndMessaging",
]
[dev-dependencies]
dotenv = "0.15.0"
image = "0.24.8"
tracing-subscriber = "0.3"
[build-dependencies]
cc = "1.0.72"
gl_generator = { version = "0.14.0", optional = true }
[profile.test]
opt-level = 3
overflow-checks = false
lto = "thin"
# TODO: remove this once the fix to imgui-rs/imgui-rs#775 gets released.
[patch.'crates-io']
imgui = { git = "https://github.com/imgui-rs/imgui-rs", rev = "cb8beeb" }