2021-09-28 15:33:28 +00:00
[ package ]
name = "egui-winit"
2022-04-30 18:27:27 +00:00
version = "0.18.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-07-26 14:50:53 +00:00
rust-version = "1.61"
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-04-29 06:17:49 +00:00
default = [ "clipboard" , "links" ]
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-02-05 10:11:15 +00:00
[ dependencies ]
2022-04-30 18:27:27 +00:00
egui = { version = "0.18.0" , path = "../egui" , default-features = false , features = [
2022-03-10 13:25:33 +00:00
"tracing" ,
] }
2022-04-29 06:17:49 +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-14 14:23:46 +00:00
winit = "0.27.2"
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-04-13 09:06:13 +00:00
puffin = { version = "0.13" , optional = true }
2022-02-05 10:11:15 +00:00
serde = { version = "1.0" , optional = true , features = [ "derive" ] }
# feature screen_reader
2022-07-03 18:12:57 +00:00
tts = { version = "0.20" , optional = true } # Can't use 0.22 due to compilation problems on linux: https://github.com/emilk/egui/runs/7170127089?check_suite_focus=true#step:5:713
2022-05-16 14:37:41 +00:00
2022-06-09 15:41:37 +00:00
webbrowser = { version = "0.7" , optional = true }
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 ]
arboard = { version = "2.1" , optional = true , default-features = false }