Switched to released imgui-rs 0.5.0, adapted readme

This commit is contained in:
4bb4 2020-10-12 17:57:00 +02:00
parent c0070bda38
commit 305c244373
5 changed files with 11 additions and 18 deletions

View file

@ -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"

View file

@ -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

View file

@ -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 = "../" }

View file

@ -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" }

View file

@ -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"