Skip to content

Commit

Permalink
Fix startup crash on release builds
Browse files Browse the repository at this point in the history
Closes #8.
  • Loading branch information
nickbeth committed Nov 10, 2024
1 parent fc3dc34 commit 761d61e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ windows-sys = { version = "0.52.0", features = [
"Win32_UI_WindowsAndMessaging",
] }
native-windows-derive = "1.0.5"

# Version 1.0.13 of native-windows-gui breaks nested flex layouts, use 1.0.12 instead
native-windows-gui = { version = "=1.0.12", default-features = false, features = [
"cursor",
"embed-resource",
Expand All @@ -38,6 +40,11 @@ native-windows-gui = { version = "=1.0.12", default-features = false, features =
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.115"

[patch.crates-io]
# This is a temporary fix for a crash in the native-windows-gui crate
# See https://github.com/gabdube/native-windows-gui/pull/308
native-windows-gui = { git = "https://github.com/nickbeth/native-windows-gui.git", branch = "transmute-ub-1.0.12" }

[build-dependencies]
embed-resource = "2.4"
embed-manifest = "1.4"

0 comments on commit 761d61e

Please sign in to comment.