2020-12-29 14:57:13 +00:00
|
|
|
[package]
|
|
|
|
name = "eframe"
|
2022-08-20 14:44:05 +00:00
|
|
|
version = "0.19.0"
|
2020-12-29 14:57:13 +00:00
|
|
|
authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
|
2021-01-17 13:48:59 +00:00
|
|
|
description = "egui framework - write GUI apps that compiles to web and/or natively"
|
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/eframe"
|
2020-12-29 14:57:13 +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/eframe"
|
2021-01-17 14:16:00 +00:00
|
|
|
categories = ["gui", "game-development"]
|
2020-12-29 14:57:13 +00:00
|
|
|
keywords = ["egui", "gui", "gamedev"]
|
2022-03-10 13:25:33 +00:00
|
|
|
include = ["../LICENSE-APACHE", "../LICENSE-MIT", "**/*.rs", "Cargo.toml"]
|
2020-12-29 14:57:13 +00:00
|
|
|
|
2021-05-12 18:02:25 +00:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
|
2020-12-29 14:57:13 +00:00
|
|
|
[lib]
|
|
|
|
|
2021-09-04 15:44:01 +00:00
|
|
|
|
2021-01-04 00:44:02 +00:00
|
|
|
[features]
|
2022-08-20 09:11:07 +00:00
|
|
|
default = ["default_fonts", "glow"]
|
2021-04-07 18:14:44 +00:00
|
|
|
|
2022-06-09 13:27:22 +00:00
|
|
|
## Detect dark mode system preference using [`dark-light`](https://docs.rs/dark-light).
|
2022-06-09 15:41:59 +00:00
|
|
|
##
|
|
|
|
## See also [`NativeOptions::follow_system_theme`] and [`NativeOptions::default_theme`].
|
2022-04-29 06:17:49 +00:00
|
|
|
dark-light = ["dep:dark-light"]
|
2022-04-11 08:53:16 +00:00
|
|
|
|
2022-06-09 13:27:22 +00:00
|
|
|
## If set, egui will use `include_bytes!` to bundle some fonts.
|
|
|
|
## If you plan on specifying your own fonts you may disable this feature.
|
2021-04-07 18:14:44 +00:00
|
|
|
default_fonts = ["egui/default_fonts"]
|
2021-09-28 15:33:28 +00:00
|
|
|
|
2022-08-20 13:18:02 +00:00
|
|
|
## Use [`glow`](https://github.com/grovesNL/glow) for painting, via [`egui_glow`](https://github.com/emilk/egui/tree/master/crates/egui_glow).
|
2022-05-12 07:02:28 +00:00
|
|
|
glow = ["dep:glow", "egui_glow"]
|
|
|
|
|
2022-06-09 13:27:22 +00:00
|
|
|
## Enable saving app state to disk.
|
2021-10-19 19:40:55 +00:00
|
|
|
persistence = [
|
2022-04-30 08:44:35 +00:00
|
|
|
"directories-next",
|
2022-04-29 06:17:49 +00:00
|
|
|
"egui-winit/serde",
|
2021-10-19 19:40:55 +00:00
|
|
|
"egui/persistence",
|
2022-04-30 08:44:35 +00:00
|
|
|
"ron",
|
|
|
|
"serde",
|
2021-10-19 19:40:55 +00:00
|
|
|
]
|
2021-09-28 15:33:28 +00:00
|
|
|
|
2022-06-09 13:27:22 +00:00
|
|
|
## Enable profiling with the [`puffin`](https://docs.rs/puffin) crate.
|
|
|
|
##
|
|
|
|
## Only enabled on native, because of the low resolution (1ms) of time keeping in browsers.
|
|
|
|
## `eframe` will call `puffin::GlobalProfiler::lock().new_frame()` for you
|
2022-11-10 15:27:31 +00:00
|
|
|
puffin = ["dep:puffin", "egui_glow?/puffin", "egui-wgpu?/puffin"]
|
2022-04-13 09:06:13 +00:00
|
|
|
|
2022-06-09 13:27:22 +00:00
|
|
|
## Enable screen reader support (requires `ctx.options().screen_reader = true;`)
|
2022-11-07 08:23:45 +00:00
|
|
|
screen_reader = ["egui-winit/screen_reader", "tts"]
|
2022-02-05 10:11:15 +00:00
|
|
|
|
2022-08-20 17:54:18 +00:00
|
|
|
## Use [`wgpu`](https://docs.rs/wgpu) for painting (via [`egui-wgpu`](https://github.com/emilk/egui/tree/master/crates/egui-wgpu)).
|
2022-06-09 13:27:22 +00:00
|
|
|
## This overrides the `glow` feature.
|
2022-10-05 18:14:18 +00:00
|
|
|
wgpu = ["dep:wgpu", "dep:egui-wgpu"]
|
2022-05-12 07:02:28 +00:00
|
|
|
|
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-04-30 08:44:35 +00:00
|
|
|
"bytemuck",
|
|
|
|
"tracing",
|
|
|
|
] }
|
2022-07-03 22:11:08 +00:00
|
|
|
tracing = { version = "0.1", default-features = false, features = ["std"] }
|
2022-04-30 08:44:35 +00:00
|
|
|
|
2022-06-09 13:27:22 +00:00
|
|
|
#! ### Optional dependencies
|
2022-06-09 15:41:37 +00:00
|
|
|
## Enable this when generating docs.
|
|
|
|
document-features = { version = "0.2", optional = true }
|
|
|
|
|
2022-08-20 14:44:05 +00:00
|
|
|
egui_glow = { version = "0.19.0", path = "../egui_glow", optional = true, default-features = false }
|
2022-05-12 07:02:28 +00:00
|
|
|
glow = { version = "0.11", optional = true }
|
2022-08-19 10:04:08 +00:00
|
|
|
ron = { version = "0.8", optional = true, features = ["integer128"] }
|
2022-05-12 07:02:28 +00:00
|
|
|
serde = { version = "1", optional = true, features = ["derive"] }
|
2022-02-05 10:11:15 +00:00
|
|
|
|
2022-04-30 08:44:35 +00:00
|
|
|
# -------------------------------------------
|
2022-02-05 10:11:15 +00:00
|
|
|
# native:
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
2022-11-07 08:23:45 +00:00
|
|
|
egui-winit = { version = "0.19.0", path = "../egui-winit", default-features = false, features = [
|
|
|
|
"clipboard",
|
|
|
|
"links",
|
|
|
|
] }
|
2022-08-14 14:23:46 +00:00
|
|
|
glutin = { version = "0.29.0" }
|
|
|
|
winit = "0.27.2"
|
2022-02-05 10:11:15 +00:00
|
|
|
|
2022-06-09 15:41:37 +00:00
|
|
|
# optional native:
|
2022-10-05 18:14:18 +00:00
|
|
|
dark-light = { version = "0.2.1", optional = true }
|
2022-04-30 08:44:35 +00:00
|
|
|
directories-next = { version = "2", optional = true }
|
2022-11-07 08:23:45 +00:00
|
|
|
egui-wgpu = { version = "0.19.0", path = "../egui-wgpu", optional = true, features = [
|
|
|
|
"winit",
|
|
|
|
] }
|
2022-11-07 11:37:37 +00:00
|
|
|
puffin = { version = "0.14", optional = true }
|
2022-10-06 13:50:46 +00:00
|
|
|
wgpu = { version = "0.14", optional = true }
|
2022-04-30 08:44:35 +00:00
|
|
|
|
|
|
|
# -------------------------------------------
|
2022-02-05 10:11:15 +00:00
|
|
|
# web:
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
2022-04-30 08:44:35 +00:00
|
|
|
bytemuck = "1.7"
|
|
|
|
js-sys = "0.3"
|
|
|
|
percent-encoding = "2.1"
|
|
|
|
wasm-bindgen = "0.2"
|
|
|
|
wasm-bindgen-futures = "0.4"
|
2022-08-28 08:58:58 +00:00
|
|
|
web-sys = { version = "0.3.58", features = [
|
2022-04-30 08:44:35 +00:00
|
|
|
"BinaryType",
|
|
|
|
"Blob",
|
|
|
|
"Clipboard",
|
|
|
|
"ClipboardEvent",
|
|
|
|
"CompositionEvent",
|
|
|
|
"console",
|
|
|
|
"CssStyleDeclaration",
|
|
|
|
"DataTransfer",
|
|
|
|
"DataTransferItem",
|
|
|
|
"DataTransferItemList",
|
|
|
|
"Document",
|
|
|
|
"DomRect",
|
|
|
|
"DragEvent",
|
|
|
|
"Element",
|
|
|
|
"Event",
|
|
|
|
"EventListener",
|
|
|
|
"EventTarget",
|
|
|
|
"ExtSRgb",
|
|
|
|
"File",
|
|
|
|
"FileList",
|
|
|
|
"FocusEvent",
|
|
|
|
"HtmlCanvasElement",
|
|
|
|
"HtmlElement",
|
|
|
|
"HtmlInputElement",
|
|
|
|
"InputEvent",
|
|
|
|
"KeyboardEvent",
|
|
|
|
"Location",
|
|
|
|
"MediaQueryList",
|
|
|
|
"MouseEvent",
|
|
|
|
"Navigator",
|
|
|
|
"Performance",
|
|
|
|
"Storage",
|
|
|
|
"Touch",
|
|
|
|
"TouchEvent",
|
|
|
|
"TouchList",
|
|
|
|
"WebGl2RenderingContext",
|
|
|
|
"WebglDebugRendererInfo",
|
|
|
|
"WebGlRenderingContext",
|
|
|
|
"WheelEvent",
|
|
|
|
"Window",
|
|
|
|
] }
|
|
|
|
|
2022-10-05 18:14:18 +00:00
|
|
|
# optional web:
|
|
|
|
egui-wgpu = { version = "0.19.0", path = "../egui-wgpu", optional = true } # if wgpu is used, use it without (!) winit
|
2022-11-11 09:27:25 +00:00
|
|
|
tts = { version = "0.24", optional = true }
|
2022-10-06 13:50:46 +00:00
|
|
|
wgpu = { version = "0.14", optional = true, features = ["webgl"] }
|