2021-09-28 15:33:28 +00:00
|
|
|
[package]
|
|
|
|
name = "egui-winit"
|
2022-08-20 14:44:05 +00:00
|
|
|
version = "0.19.0"
|
2021-09-28 15:33:28 +00:00
|
|
|
authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
|
|
|
|
description = "Bindings for using egui with winit"
|
2021-12-25 18:32:25 +00:00
|
|
|
edition = "2021"
|
2022-11-16 18:08:03 +00:00
|
|
|
rust-version = "1.65"
|
2022-08-20 13:18:02 +00:00
|
|
|
homepage = "https://github.com/emilk/egui/tree/master/crates/egui-winit"
|
2021-09-28 15:33:28 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
readme = "README.md"
|
2022-08-20 13:18:02 +00:00
|
|
|
repository = "https://github.com/emilk/egui/tree/master/crates/egui-winit"
|
2021-09-28 15:33:28 +00:00
|
|
|
categories = ["gui", "game-development"]
|
|
|
|
keywords = ["winit", "egui", "gui", "gamedev"]
|
2022-03-10 13:25:33 +00:00
|
|
|
include = ["../LICENSE-APACHE", "../LICENSE-MIT", "**/*.rs", "Cargo.toml"]
|
2021-09-28 15:33:28 +00:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
|
|
|
|
|
|
|
|
[features]
|
2022-08-30 06:49:32 +00:00
|
|
|
default = ["clipboard", "links", "wayland", "winit/default"]
|
2021-09-28 15:33:28 +00:00
|
|
|
|
2022-06-09 13:27:22 +00:00
|
|
|
## [`bytemuck`](https://docs.rs/bytemuck) enables you to cast [`egui::epaint::Vertex`], [`egui::Vec2`] etc to `&[u8]`.
|
2022-04-11 08:53:16 +00:00
|
|
|
bytemuck = ["egui/bytemuck"]
|
|
|
|
|
2022-06-09 13:27:22 +00:00
|
|
|
## Enable cut/copy/paste to OS clipboard.
|
|
|
|
## If disabled a clipboard will be simulated so you can still copy/paste within the egui app.
|
2022-05-16 14:37:41 +00:00
|
|
|
clipboard = ["arboard", "smithay-clipboard"]
|
2021-09-28 15:33:28 +00:00
|
|
|
|
2022-06-09 13:27:22 +00:00
|
|
|
## Enable opening links in a browser when an egui hyperlink is clicked.
|
2021-09-28 15:33:28 +00:00
|
|
|
links = ["webbrowser"]
|
|
|
|
|
2022-06-09 13:27:22 +00:00
|
|
|
## Enable profiling with the [`puffin`](https://docs.rs/puffin) crate.
|
2022-04-13 09:06:13 +00:00
|
|
|
puffin = ["dep:puffin"]
|
|
|
|
|
2022-06-09 13:27:22 +00:00
|
|
|
## Experimental support for a screen reader.
|
2021-09-28 15:33:28 +00:00
|
|
|
screen_reader = ["tts"]
|
2021-09-30 17:18:51 +00:00
|
|
|
|
2022-06-09 13:27:22 +00:00
|
|
|
## Allow serialization of [`WindowSettings`] using [`serde`](https://docs.rs/serde).
|
2022-04-09 11:54:47 +00:00
|
|
|
serde = ["egui/serde", "dep:serde"]
|
2021-10-07 20:30:15 +00:00
|
|
|
|
2022-08-30 06:49:32 +00:00
|
|
|
## Enables Wayland support.
|
|
|
|
wayland = ["winit/wayland"]
|
2022-02-05 10:11:15 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2022-08-20 14:44:05 +00:00
|
|
|
egui = { version = "0.19.0", path = "../egui", default-features = false, features = [
|
2022-03-10 13:25:33 +00:00
|
|
|
"tracing",
|
|
|
|
] }
|
2022-11-07 08:54:42 +00:00
|
|
|
instant = { version = "0.1", features = [
|
|
|
|
"wasm-bindgen",
|
|
|
|
] } # We use instant so we can (maybe) compile for web
|
2022-07-03 22:11:08 +00:00
|
|
|
tracing = { version = "0.1", default-features = false, features = ["std"] }
|
2022-08-30 06:49:32 +00:00
|
|
|
winit = { version = "0.27.2", default-features = false }
|
2022-02-05 10:11:15 +00:00
|
|
|
|
2022-06-09 15:41:37 +00:00
|
|
|
#! ### Optional dependencies
|
|
|
|
|
|
|
|
## Enable this when generating docs.
|
|
|
|
document-features = { version = "0.2", optional = true }
|
|
|
|
|
2022-11-07 11:37:37 +00:00
|
|
|
puffin = { version = "0.14", optional = true }
|
2022-02-05 10:11:15 +00:00
|
|
|
serde = { version = "1.0", optional = true, features = ["derive"] }
|
|
|
|
|
|
|
|
# feature screen_reader
|
2022-11-11 09:27:25 +00:00
|
|
|
tts = { version = "0.24", optional = true }
|
2022-05-16 14:37:41 +00:00
|
|
|
|
2022-10-02 18:33:45 +00:00
|
|
|
webbrowser = { version = "0.8", optional = true }
|
2022-06-09 15:41:37 +00:00
|
|
|
|
2022-05-16 14:37:41 +00:00
|
|
|
[target.'cfg(any(target_os="linux", target_os="dragonfly", target_os="freebsd", target_os="netbsd", target_os="openbsd"))'.dependencies]
|
|
|
|
smithay-clipboard = { version = "0.6.3", optional = true }
|
2022-08-15 08:19:59 +00:00
|
|
|
|
|
|
|
[target.'cfg(not(target_os = "android"))'.dependencies]
|
2022-11-07 08:54:42 +00:00
|
|
|
arboard = { version = "3.2", optional = true, default-features = false }
|