Ghidrust provides a hyper fast, AI native reverse engineering platform built in Rust, inspired by Ghidra. Includes experimental GPU kernels to rapidly decompile large files, a decryption suite, and network monitor for packet to binary reverse engineering.
Embed Windows app icons for ghidrust CLI and GUI exes.
oofzb54935da44b2
diff --git a/Cargo.lock b/Cargo.lockindex af0774a..725ecc5 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -1374,6 +1374,7 @@ dependencies = ["ghidrust-unity-inventory","serde","serde_json",+ "winres",][[package]]@@ -1434,6 +1435,7 @@ dependencies = ["serde_json","unicode-width","windows-sys 0.59.0",+ "winres",][[package]]@@ -3368,6 +3370,15 @@ dependencies = ["zerovec",]+[[package]]+name = "toml"+version = "0.5.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234"+dependencies = [+ "serde",+]+[[package]]name = "toml_datetime"version = "1.1.1+spec-1.1.0"@@ -4221,6 +4232,15 @@ dependencies = ["memchr",]+[[package]]+name = "winres"+version = "0.1.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b68db261ef59e9e52806f688020631e987592bd83619edccda9c47d42cde4f6c"+dependencies = [+ "toml",+]+[[package]]name = "wit-bindgen"version = "0.57.1"diff --git a/crates/ghidrust-cli/Cargo.toml b/crates/ghidrust-cli/Cargo.tomlindex 86048a4..9c156df 100644--- a/crates/ghidrust-cli/Cargo.toml+++ b/crates/ghidrust-cli/Cargo.toml@@ -17,3 +17,6 @@ ghidrust-unity-inventory = { workspace = true }ghidrust-types = { workspace = true }serde = { version = "1", features = ["derive"] }serde_json = "1"++[target.'cfg(windows)'.build-dependencies]+winres = "0.1"diff --git a/crates/ghidrust-cli/assets/ghidrust.ico b/crates/ghidrust-cli/assets/ghidrust.iconew file mode 100644index 0000000..5a18ab4Binary files /dev/null and b/crates/ghidrust-cli/assets/ghidrust.ico differdiff --git a/crates/ghidrust-cli/assets/ghidrust.png b/crates/ghidrust-cli/assets/ghidrust.pngnew file mode 100644index 0000000..9bde82eBinary files /dev/null and b/crates/ghidrust-cli/assets/ghidrust.png differdiff --git a/crates/ghidrust-cli/build.rs b/crates/ghidrust-cli/build.rsnew file mode 100644index 0000000..e6733e1--- /dev/null+++ b/crates/ghidrust-cli/build.rs@@ -0,0 +1,13 @@+fn main() {+ let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default();+ if target_os != "windows" {+ return;+ }++ let mut res = winres::WindowsResource::new();+ res.set_icon("assets/ghidrust.ico");+ if let Err(err) = res.compile() {+ // Keep non-MSVC / missing-RC toolchains buildable; icon is best-effort.+ println!("cargo:warning=windows icon embed skipped: {err}");+ }+}diff --git a/crates/ghidrust-gui/Cargo.toml b/crates/ghidrust-gui/Cargo.tomlindex 6ed381a..d1f0aaa 100644--- a/crates/ghidrust-gui/Cargo.toml+++ b/crates/ghidrust-gui/Cargo.toml@@ -48,3 +48,6 @@ windows-sys = { version = "0.59", features = [[target.'cfg(unix)'.dependencies]libc = "0.2"++[target.'cfg(windows)'.build-dependencies]+winres = "0.1"diff --git a/crates/ghidrust-gui/assets/ghidrust.ico b/crates/ghidrust-gui/assets/ghidrust.iconew file mode 100644index 0000000..5a18ab4Binary files /dev/null and b/crates/ghidrust-gui/assets/ghidrust.ico differdiff --git a/crates/ghidrust-gui/assets/ghidrust.png b/crates/ghidrust-gui/assets/ghidrust.pngnew file mode 100644index 0000000..9bde82eBinary files /dev/null and b/crates/ghidrust-gui/assets/ghidrust.png differdiff --git a/crates/ghidrust-gui/build.rs b/crates/ghidrust-gui/build.rsnew file mode 100644index 0000000..e6733e1--- /dev/null+++ b/crates/ghidrust-gui/build.rs@@ -0,0 +1,13 @@+fn main() {+ let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default();+ if target_os != "windows" {+ return;+ }++ let mut res = winres::WindowsResource::new();+ res.set_icon("assets/ghidrust.ico");+ if let Err(err) = res.compile() {+ // Keep non-MSVC / missing-RC toolchains buildable; icon is best-effort.+ println!("cargo:warning=windows icon embed skipped: {err}");+ }+}