Upgraded to imgui-rs 0.7, see comments.

- The glium example was upgraded as well and works.
- The wgpu example was not yet touched in this commit, it will
  require a version of imgui-wgpu that points to imgui-rs 0.7.0
  as well to work.
This commit is contained in:
4bb4 2021-02-06 10:19:40 +01:00
parent 2da7278061
commit 5177415a25
6 changed files with 50 additions and 38 deletions

View file

@ -12,7 +12,7 @@ readme = "README.md"
[dependencies] [dependencies]
implot-sys = { version = "0.5.0", path = "implot-sys" } implot-sys = { version = "0.5.0", path = "implot-sys" }
imgui = { version = "=0.6.0" } imgui = { version = "=0.7.0" }
bitflags = "1.0" bitflags = "1.0"
parking_lot = "0.11" parking_lot = "0.11"
rustversion = "1.0.4" rustversion = "1.0.4"

View file

@ -8,4 +8,4 @@ edition = "2018"
[dependencies] [dependencies]
implot = { path = "../../" } implot = { path = "../../" }
imgui = "=0.6.0" imgui = "=0.7.0"

View file

@ -127,6 +127,12 @@ dependencies = [
"libc", "libc",
] ]
[[package]]
name = "chlorine"
version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd650552110e39b7c5058986cf177decd3365841836578ac50a286094eac0be6"
[[package]] [[package]]
name = "clipboard" name = "clipboard"
version = "0.5.0" version = "0.5.0"
@ -165,6 +171,22 @@ dependencies = [
"objc", "objc",
] ]
[[package]]
name = "cocoa"
version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f63902e9223530efb4e26ccd0cf55ec30d592d3b42e21a28defc42a9586e832"
dependencies = [
"bitflags",
"block",
"cocoa-foundation",
"core-foundation 0.9.1",
"core-graphics 0.22.2",
"foreign-types",
"libc",
"objc",
]
[[package]] [[package]]
name = "cocoa-foundation" name = "cocoa-foundation"
version = "0.1.0" version = "0.1.0"
@ -314,7 +336,7 @@ dependencies = [
"const_fn", "const_fn",
"crossbeam-utils", "crossbeam-utils",
"lazy_static", "lazy_static",
"memoffset 0.6.1", "memoffset",
"scopeguard", "scopeguard",
] ]
@ -486,29 +508,29 @@ dependencies = [
[[package]] [[package]]
name = "glium" name = "glium"
version = "0.28.0" version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7eeec7b733d14519e2541f4cc8a1230de9143d4ec439dd51b6c048d8ec991759" checksum = "77623b4b688e68ec5ce256dd45614e374d4bee6ecec964b790733bf2c05f8732"
dependencies = [ dependencies = [
"backtrace", "backtrace",
"fnv", "fnv",
"gl_generator", "gl_generator",
"glutin", "glutin",
"lazy_static", "lazy_static",
"memoffset 0.5.6", "memoffset",
"smallvec", "smallvec",
"takeable-option", "takeable-option",
] ]
[[package]] [[package]]
name = "glutin" name = "glutin"
version = "0.25.1" version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d8bae26a39a728b003e9fad473ea89527de0de050143b4df866f18bb154bc86e" checksum = "1ae1cbb9176b9151c4ce03f012e3cd1c6c18c4be79edeaeb3d99f5d8085c5fa3"
dependencies = [ dependencies = [
"android_glue", "android_glue",
"cgl", "cgl",
"cocoa", "cocoa 0.23.0",
"core-foundation 0.9.1", "core-foundation 0.9.1",
"glutin_egl_sys", "glutin_egl_sys",
"glutin_emscripten_sys", "glutin_emscripten_sys",
@ -608,22 +630,20 @@ dependencies = [
[[package]] [[package]]
name = "imgui" name = "imgui"
version = "0.6.0" version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a714f73a3f08446d92c47a38b536a03deba500aa6bb6fa805e8c0b6f90945e4f" checksum = "24cfcf6e3326886321c5d637caf1ce217006651059015fae372b1c49c0e722b2"
dependencies = [ dependencies = [
"bitflags", "bitflags",
"glium",
"imgui-sys", "imgui-sys",
"lazy_static",
"parking_lot", "parking_lot",
] ]
[[package]] [[package]]
name = "imgui-glium-renderer" name = "imgui-glium-renderer"
version = "0.6.0" version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e832620df00e43f56a832299b9d91c118ae19839adc0bba1eaeeb876bd7a27ee" checksum = "8c295c510c0d7209cf2304741808425bcd8e421142679d2448a38d4aa51762f3"
dependencies = [ dependencies = [
"glium", "glium",
"imgui", "imgui",
@ -631,18 +651,19 @@ dependencies = [
[[package]] [[package]]
name = "imgui-sys" name = "imgui-sys"
version = "0.6.0" version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0522b693da8a64322afbb32c63c04f39d9b9435cc75199d630207eee48886fc1" checksum = "85ca00be6b78bf02b57e91468cf19d08dfcc11d0fb3c2f3dc491c29404d8d330"
dependencies = [ dependencies = [
"cc", "cc",
"chlorine",
] ]
[[package]] [[package]]
name = "imgui-winit-support" name = "imgui-winit-support"
version = "0.6.0" version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e0fc247afc385ed9cd26860cdb7fae988d5c7e2ad1d70c70aef728ce9b78e85" checksum = "d632440e05c964e8a7f00f2659c4f71c97897d8c38a77a0c2dc1f3fe8d632208"
dependencies = [ dependencies = [
"imgui", "imgui",
"winit", "winit",
@ -808,15 +829,6 @@ dependencies = [
"libc", "libc",
] ]
[[package]]
name = "memoffset"
version = "0.5.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "043175f069eda7b85febe4a74abbaeff828d9f8b448515d3151a14a3542811aa"
dependencies = [
"autocfg",
]
[[package]] [[package]]
name = "memoffset" name = "memoffset"
version = "0.6.1" version = "0.6.1"
@ -1536,12 +1548,12 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]] [[package]]
name = "winit" name = "winit"
version = "0.23.0" version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5bc559da567d8aa671bbcd08304d49e982c7bf2cb91e10288b9188931c1b772" checksum = "da4eda6fce0eb84bd0a33e3c8794eb902e1033d0a1d5a31bc4f19b1b4bbff597"
dependencies = [ dependencies = [
"bitflags", "bitflags",
"cocoa", "cocoa 0.24.0",
"core-foundation 0.9.1", "core-foundation 0.9.1",
"core-graphics 0.22.2", "core-graphics 0.22.2",
"core-video-sys", "core-video-sys",

View file

@ -11,12 +11,12 @@ publish = false
[dependencies] [dependencies]
clipboard = "0.5" clipboard = "0.5"
glium = { version = "0.28", default-features = true } glium = { version = "0.29", default-features = true }
image = "0.23" image = "0.23"
imgui-sys = "0.6.0" imgui-sys = "0.7.0"
imgui = "=0.6.0" imgui = "=0.7.0"
imgui-glium-renderer = "=0.6.0" imgui-glium-renderer = "=0.7.0"
imgui-winit-support = "=0.6.0" imgui-winit-support = "=0.7.0"
implot-sys = { path = "../../implot-sys" } implot-sys = { path = "../../implot-sys" }
implot = { path = "../../" } implot = { path = "../../" }

View file

@ -6,4 +6,4 @@ edition = "2018"
[dependencies] [dependencies]
bindgen = "0.57" bindgen = "0.57"
imgui-sys = { version = "=0.6.0" } imgui-sys = { version = "=0.7.0" }

View file

@ -12,7 +12,7 @@ build = "build.rs"
links = "implot" links = "implot"
[dependencies] [dependencies]
imgui-sys = "=0.6.0" imgui-sys = "=0.7.0"
[build-dependencies] [build-dependencies]
cc = "1.0" cc = "1.0"