From 305c244373d479e246389ccb75eab19c01b589e8 Mon Sep 17 00:00:00 2001 From: 4bb4 <67376761+4bb4@users.noreply.github.com> Date: Mon, 12 Oct 2020 17:57:00 +0200 Subject: [PATCH] Switched to released imgui-rs 0.5.0, adapted readme --- Cargo.toml | 4 ++-- README.md | 9 +-------- implot-examples/Cargo.toml | 8 ++++---- implot-sys-bindgen/Cargo.toml | 4 ++-- implot-sys/Cargo.toml | 4 ++-- 5 files changed, 11 insertions(+), 18 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 166f8b6..177e27a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "implot" -version = "0.0.1" +version = "0.1.0" edition = "2018" authors = ["Sandro Merkli", "implot-rs contributors"] -description = "High-level Rust bindings to implot" +description = "Rust bindings to https://github.com/epezent/implot" homepage = "https://github.com/4bb4/implot-rs" repository = "https://github.com/4bb4/implot-rs" license = "MIT/Apache-2.0" diff --git a/README.md b/README.md index 5355ca9..7327dc7 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,7 @@ Rust bindings for [ImPlot](https://github.com/epezent/implot), built by running [bindgen](https://github.com/rust-lang/rust-bindgen) on [cimplot](https://github.com/cimgui/cimplot). -Currently not released on crates.io yet due to a dependency on an unreleased version of `imgui-rs`. -One can still use it as a dependency directly from Git if desired, for example using the line -``` -implot = { git = "https://github.com/4bb4/implot-rs/", rev = "your_favourite_commit" } -``` + The bindings are currently based on ImPlot version 0.7. See the status section below for detailed information on implementation status. @@ -14,9 +10,6 @@ detailed information on implementation status. ## Requirements imgui-rs requires minimum Rust version 1.40, so this project does as well by extension. -Currently a pinned version (66260c123b9a80275bd3a366ef403444db11a676) of imgui-rs is used -as a dependency until https://github.com/Gekkio/imgui-rs/pull/339 makes it into a release. - The sys crate compiles implot, so a C++ compiler will also be required. ## Examples diff --git a/implot-examples/Cargo.toml b/implot-examples/Cargo.toml index 7e12126..1c9b17a 100644 --- a/implot-examples/Cargo.toml +++ b/implot-examples/Cargo.toml @@ -13,10 +13,10 @@ publish = false clipboard = "0.5" glium = { version = "0.27", default-features = true } image = "0.23" -imgui-sys = { git = "https://github.com/Gekkio/imgui-rs/", rev = "66260c123b9a80275bd3a366ef403444db11a676" } -imgui = { git = "https://github.com/Gekkio/imgui-rs/", rev = "66260c123b9a80275bd3a366ef403444db11a676" } -imgui-glium-renderer = { git = "https://github.com/Gekkio/imgui-rs/", rev = "66260c123b9a80275bd3a366ef403444db11a676" } -imgui-winit-support = { git = "https://github.com/Gekkio/imgui-rs/", rev = "66260c123b9a80275bd3a366ef403444db11a676" } +imgui-sys = "0.5.0" +imgui = "0.5.0" +imgui-glium-renderer = "0.5.0" +imgui-winit-support = "0.5.0" implot-sys = { path = "../implot-sys" } implot = { path = "../" } diff --git a/implot-sys-bindgen/Cargo.toml b/implot-sys-bindgen/Cargo.toml index 40989fb..77eaca9 100644 --- a/implot-sys-bindgen/Cargo.toml +++ b/implot-sys-bindgen/Cargo.toml @@ -8,5 +8,5 @@ edition = "2018" [dependencies] bindgen = "0.53.1" -imgui-sys = { git = "https://github.com/Gekkio/imgui-rs/", rev = "66260c123b9a80275bd3a366ef403444db11a676" } -imgui = { git = "https://github.com/Gekkio/imgui-rs/", rev = "66260c123b9a80275bd3a366ef403444db11a676" } +imgui-sys = { version = "0.5.0" } +imgui = { version = "0.5.0" } diff --git a/implot-sys/Cargo.toml b/implot-sys/Cargo.toml index 0f6379a..5a890e8 100644 --- a/implot-sys/Cargo.toml +++ b/implot-sys/Cargo.toml @@ -12,8 +12,8 @@ build = "build.rs" links = "implot" [dependencies] -imgui-sys = { git = "https://github.com/Gekkio/imgui-rs/", rev = "66260c123b9a80275bd3a366ef403444db11a676" } -imgui = { git = "https://github.com/Gekkio/imgui-rs/", rev = "66260c123b9a80275bd3a366ef403444db11a676" } +imgui-sys = "0.5.0" +imgui = "0.5.0" [build-dependencies] cc = "1.0"