Thom Chiovoloni 54ab45b15c Support multiple simultaneous winit versions in imgui-winit-support
- Resolve conflicts in favor of latest.
- Warn at runtime if more than one is enabled and its a debug build (but
  support turning that off via yet another feature)
- Document all of this, including examples and (rough) support policy.
2020-12-05 23:32:54 -08:00

27 lines
988 B
TOML

[package]
name = "imgui-winit-support"
version = "0.6.0"
edition = "2018"
authors = ["The imgui-rs Developers"]
description = "winit support code for the imgui crate"
homepage = "https://github.com/imgui-rs/imgui-rs"
repository = "https://github.com/imgui-rs/imgui-rs"
license = "MIT/Apache-2.0"
categories = ["gui"]
[dependencies]
imgui = { version = "0.6.0", path = "../" }
winit-19 = { version = ">= 0.16, <= 0.19", package = "winit", optional = true }
winit-20 = { version = ">= 0.20, <= 0.21", package = "winit", optional = true }
winit-22 = { version = "0.22", package = "winit", optional = true }
winit-23 = { version = "0.23", package = "winit", optional = true }
[features]
default = ["winit-23"]
# This is phrased as a negative (unlike most features) so that it needs to be
# explicitly disabled (and `default-features = false` won't do it). To avoid
# problems from this we don't expose this in the public API in any way, keeping
# things additive.
no-warn-on-multiple = []