Skip to content

Commit 123b6a5

Browse files
committed
Attempt to get wasm to build
1 parent 5cf0553 commit 123b6a5

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

Cargo.lock

Lines changed: 17 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

objdiff-core/Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ rabbitizer = { version = "2.0.0-alpha.4", default-features = false, features = [
162162
cpp_demangle = { version = "0.4", default-features = false, features = ["alloc"], optional = true }
163163
iced-x86 = { version = "1.21", default-features = false, features = ["decoder", "intel", "gas", "masm", "nasm", "exhaustive_enums", "no_std"], optional = true }
164164
msvc-demangler = { version = "0.11", optional = true }
165-
windows-sys = { version = "0.59", features = ["Win32_System_Diagnostics_Debug"] }
166165

167166
# arm
168167
unarm = { version = "1.9", optional = true }
@@ -193,6 +192,13 @@ self_update = { version = "0.42", default-features = false, features = ["rustls"
193192
reqwest = { version = "0.12", default-features = false, features = ["blocking", "json", "multipart", "default-tls"], optional = true }
194193
self_update = { version = "0.42", optional = true }
195194

195+
# For Windows builds
196+
[dependencies.windows-sys]
197+
version = "0.61"
198+
features = [
199+
"Win32_System_Diagnostics_Debug",
200+
]
201+
196202
[build-dependencies]
197203
heck = { version = "0.5", optional = true }
198204
pbjson-build = { version = "0.8", optional = true }

objdiff-core/src/arch/x86.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ impl Arch for ArchX86 {
307307
#[cfg(target_os = "windows")]
308308
{
309309
use std::ffi::{CStr, CString};
310+
310311
use windows_sys::Win32::System::Diagnostics::Debug::UnDecorateSymbolName;
311312

312313
let cstr = CString::new(name).ok()?;

0 commit comments

Comments
 (0)