Skip to content

Commit dc16f1d

Browse files
authored
Add support for dump_process_memory on Windows.
1 parent e6b9f54 commit dc16f1d

File tree

3 files changed

+383
-86
lines changed

3 files changed

+383
-86
lines changed

crates/rrg/Cargo.toml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ action-execute_signed_command = []
5555
# in most RRG builds. Once that mechanism is no longer needed, this should be
5656
# deleted.
5757
action-execute_signed_command-preverified = ["action-execute_signed_command"]
58-
action-dump_process_memory = []
58+
action-dump_process_memory = ["dep:windows-sys"]
5959

6060
test-setfattr = []
6161
test-chattr = []
@@ -143,6 +143,18 @@ version = "3.13.0"
143143
[dev-dependencies.quickcheck]
144144
version = "1.0.3"
145145

146+
[target.'cfg(target_family = "windows")'.dependencies.windows-sys]
147+
version = "0.59.0"
148+
optional = true
149+
features = [
150+
"Win32_Foundation",
151+
"Win32_Storage_FileSystem",
152+
"Win32_System_Diagnostics_Debug",
153+
"Win32_System_Memory",
154+
"Win32_System_ProcessStatus",
155+
"Win32_System_Threading",
156+
]
157+
146158
[target.'cfg(target_family = "windows")'.dev-dependencies.windows-sys]
147159
version = "0.59.0"
148160
features = [

0 commit comments

Comments
 (0)