Skip to content

Commit

Permalink
Bump imgui to 0.12 and version to 0.7 (#189)
Browse files Browse the repository at this point in the history
Due to a panic (see imgui-rs/imgui-rs#775), unreleased as of 0.12, this PR points to a specific commit. This will be reverted once the fix is released.
  • Loading branch information
veeenu authored May 24, 2024
1 parent 5655ce1 commit 5f9bba1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
24 changes: 24 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Contributing

I want to turn this into a suitable guide for new contributors, but we're not there yet. Sorry :(

## Testing on Linux

On Linux, the default cross compilation target is `x86_64-pc-windows-gnu`. Cross compilation
is necessary due to DirectX being Windows only. It is recommended to also install the 32-bit
target.

```
rustup target add x86_64-pc-windows-gnu
rustup target add i686-pc-windows-gnu
```

To run tests in Wine, it is necessary to install your distribution's mingw32 package, and add
the DLL paths to `$WINEPATH`:

```
export WINEPATH=/usr/x86_64-w64-mingw32/bin
```

Your path could be different, depending on where your distribution installs the packages.
The one above is valid on Manjaro; the `mingw-w64-*` packages are the ones to install.
8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hudhook"
version = "0.6.5"
version = "0.7.0"
edition = "2021"
description = "A graphics API hook with dear imgui render loop. Supports DirectX 9, 11, 12, and OpenGL 3."
homepage = "https://github.com/veeenu/hudhook"
Expand Down Expand Up @@ -56,7 +56,7 @@ crate-type = ["cdylib"]

[dependencies]
bitflags = "2.5.0"
imgui = "0.11"
imgui = "0.12"
memoffset = "0.9.0"
once_cell = { version = "1.18.0", default-features = false }
parking_lot = "0.12"
Expand Down Expand Up @@ -102,3 +102,7 @@ gl_generator = { version = "0.14.0", optional = true }
opt-level = 3
overflow-checks = false
lto = "thin"

# TODO: remove this once the fix to imgui-rs/imgui-rs#775 gets released.
[patch.'crates-io']
imgui = { git = "https://github.com/imgui-rs/imgui-rs", rev = "cb8beeb" }

0 comments on commit 5f9bba1

Please sign in to comment.