forked from darfink/detour-rs
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Cargo.toml
75 lines (64 loc) · 2.08 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
[package]
authors = ["Mason Ginter <mason@dagint.com>", "Elliott Linder <elliott.darfink@gmail.com>"]
description = "A cross-platform detour library written in Rust"
documentation = "https://docs.rs/retour"
homepage = "https://github.com/Hpmason/retour-rs"
keywords = ["detour", "hook", "function", "api", "redirect"]
license = "BSD-2-Clause"
name = "retour"
readme = "README.md"
repository = "https://github.com/Hpmason/retour-rs"
version = "0.4.0-alpha.3"
edition = "2018"
rust-version = "1.60.0"
# [badges]
# azure-devops = { project = "darfink/detour-rs", pipeline = "darfink.detour-rs" }
[dependencies]
cfg-if = "1.0.0"
generic-array = "0.14.7"
once_cell = "1.18.0"
libc = "0.2.145"
mmap = { package = "mmap-fixed-fixed", version = "0.1.3" }
region = "3.0.0"
slice-pool = {package = "slice-pool2", version = "0.4.3" }
[dev-dependencies]
matches = "0.1.10"
ctor = "0.2.2"
[features]
default = []
nightly = []
thiscall-abi = ["nightly"]
static-detour = ["nightly"]
28-args = []
42-args = ["28-args"]
[[example]]
name = "messageboxw_detour"
required-features = ["static-detour"]
crate-type = ["cdylib"]
[[example]]
name = "cat_detour"
required-features = ["static-detour"]
crate-type = ["cdylib"]
[[example]]
name = "com_dxgi_present"
required-features = ["static-detour"]
crate-type = ["cdylib"]
[[example]]
name = "kernel32_detour"
crate-type = ["cdylib"]
[target."cfg(any(target_arch = \"x86\", target_arch = \"x86_64\"))".dependencies.iced-x86]
version = "1.20"
default-features = false
# https://github.com/icedland/iced/blob/master/src/rust/iced-x86/README.md#crate-feature-flags
features = ["std", "decoder", "fast_fmt"]
[target."cfg(windows)".dev-dependencies.windows]
version = "0.48"
features = ["Win32_Foundation",
"Win32_System_Console", "Win32_System_LibraryLoader", "Win32_System_SystemServices",
"Win32_Graphics_Gdi", "Win32_Graphics_Direct3D", "Win32_Graphics_Direct3D11",
"Win32_Graphics_Dxgi", "Win32_Graphics_Dxgi_Common",
"Win32_UI_WindowsAndMessaging",
]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]