2018-12-30 20:08:29 +00:00
|
|
|
[package]
|
2020-07-17 09:05:57 +00:00
|
|
|
name = "egui_web"
|
2022-02-22 18:32:30 +00:00
|
|
|
version = "0.17.0"
|
2020-05-30 09:04:40 +00:00
|
|
|
authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
|
2021-01-17 13:48:59 +00:00
|
|
|
description = "Bindings for compiling egui code to WASM for a web page"
|
2020-05-26 13:07:31 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
2021-12-25 18:32:25 +00:00
|
|
|
edition = "2021"
|
|
|
|
rust-version = "1.56"
|
2021-09-03 19:12:44 +00:00
|
|
|
homepage = "https://github.com/emilk/egui/tree/master/egui_web"
|
2020-08-09 15:30:12 +00:00
|
|
|
readme = "README.md"
|
2021-09-03 19:12:44 +00:00
|
|
|
repository = "https://github.com/emilk/egui/tree/master/egui_web"
|
2021-01-17 14:16:00 +00:00
|
|
|
categories = ["gui", "web-programming"]
|
2020-08-09 15:30:12 +00:00
|
|
|
keywords = ["wasm", "web", "egui", "gui", "gamedev"]
|
2021-02-28 19:07:24 +00:00
|
|
|
include = [
|
2021-03-09 17:34:14 +00:00
|
|
|
"../LICENSE-APACHE",
|
|
|
|
"../LICENSE-MIT",
|
2021-02-28 19:07:24 +00:00
|
|
|
"**/*.rs",
|
|
|
|
"Cargo.toml",
|
|
|
|
"src/shader/*.glsl",
|
|
|
|
]
|
2018-12-30 20:08:29 +00:00
|
|
|
|
2021-05-12 18:02:25 +00:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
|
2018-12-30 20:08:29 +00:00
|
|
|
[lib]
|
|
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
|
2022-02-05 10:11:15 +00:00
|
|
|
|
|
|
|
[features]
|
2022-03-11 18:15:06 +00:00
|
|
|
default = ["default_fonts"]
|
2022-02-05 10:11:15 +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.
|
|
|
|
default_fonts = ["egui/default_fonts"]
|
|
|
|
|
|
|
|
# enable persisting egui memory
|
|
|
|
persistence = ["egui/persistence", "ron", "serde"]
|
|
|
|
|
|
|
|
# enable screen reader support (requires `ctx.options().screen_reader = true;`)
|
|
|
|
screen_reader = ["tts"]
|
|
|
|
|
|
|
|
|
2018-12-30 20:08:29 +00:00
|
|
|
[dependencies]
|
2022-02-22 18:32:30 +00:00
|
|
|
egui = { version = "0.17.0", path = "../egui", default-features = false, features = [
|
2022-01-15 12:59:52 +00:00
|
|
|
"convert_bytemuck",
|
2022-02-01 11:27:39 +00:00
|
|
|
"tracing",
|
2021-08-15 14:55:33 +00:00
|
|
|
] }
|
2022-03-11 18:15:06 +00:00
|
|
|
egui_glow = { version = "0.17.0", path = "../egui_glow", default-features = false }
|
2022-02-22 18:32:30 +00:00
|
|
|
epi = { version = "0.17.0", path = "../epi" }
|
2022-01-15 12:59:52 +00:00
|
|
|
|
|
|
|
bytemuck = "1.7"
|
2019-01-04 13:14:32 +00:00
|
|
|
js-sys = "0.3"
|
2022-02-17 15:46:43 +00:00
|
|
|
percent-encoding = "2.1"
|
2022-02-01 11:27:39 +00:00
|
|
|
tracing = "0.1"
|
|
|
|
wasm-bindgen = "0.2"
|
|
|
|
wasm-bindgen-futures = "0.4"
|
|
|
|
|
|
|
|
# Optional:
|
2021-10-23 03:53:58 +00:00
|
|
|
ron = { version = "0.7", optional = true }
|
2021-01-04 00:44:02 +00:00
|
|
|
serde = { version = "1", optional = true }
|
2022-02-04 12:17:48 +00:00
|
|
|
tts = { version = "0.20", optional = true } # feature screen_reader
|
2018-12-30 20:08:29 +00:00
|
|
|
|
2019-01-04 13:14:32 +00:00
|
|
|
[dependencies.web-sys]
|
2021-08-15 14:55:33 +00:00
|
|
|
version = "0.3.52"
|
2019-01-04 13:14:32 +00:00
|
|
|
features = [
|
2021-08-20 20:20:45 +00:00
|
|
|
"BinaryType",
|
|
|
|
"Blob",
|
2021-01-04 00:44:02 +00:00
|
|
|
"Clipboard",
|
|
|
|
"ClipboardEvent",
|
2021-03-26 12:56:26 +00:00
|
|
|
"CompositionEvent",
|
2021-06-07 18:56:18 +00:00
|
|
|
"console",
|
2021-01-04 00:44:02 +00:00
|
|
|
"CssStyleDeclaration",
|
|
|
|
"DataTransfer",
|
2021-08-20 20:20:45 +00:00
|
|
|
"DataTransferItem",
|
|
|
|
"DataTransferItemList",
|
2021-01-04 00:44:02 +00:00
|
|
|
"Document",
|
|
|
|
"DomRect",
|
2021-08-20 20:20:45 +00:00
|
|
|
"DragEvent",
|
2021-01-04 00:44:02 +00:00
|
|
|
"Element",
|
2021-03-26 12:56:26 +00:00
|
|
|
"Event",
|
2021-03-31 20:54:21 +00:00
|
|
|
"EventListener",
|
2021-03-26 12:56:26 +00:00
|
|
|
"EventTarget",
|
2021-08-26 16:40:35 +00:00
|
|
|
"ExtSRgb",
|
2021-08-20 20:20:45 +00:00
|
|
|
"File",
|
|
|
|
"FileList",
|
2021-03-26 12:56:26 +00:00
|
|
|
"FocusEvent",
|
2021-01-04 00:44:02 +00:00
|
|
|
"HtmlCanvasElement",
|
|
|
|
"HtmlElement",
|
2021-03-26 12:56:26 +00:00
|
|
|
"HtmlInputElement",
|
|
|
|
"InputEvent",
|
2021-01-04 00:44:02 +00:00
|
|
|
"KeyboardEvent",
|
|
|
|
"Location",
|
2021-06-07 18:56:18 +00:00
|
|
|
"MediaQueryList",
|
2021-01-04 00:44:02 +00:00
|
|
|
"MouseEvent",
|
|
|
|
"Navigator",
|
|
|
|
"Performance",
|
|
|
|
"Storage",
|
|
|
|
"Touch",
|
|
|
|
"TouchEvent",
|
|
|
|
"TouchList",
|
2021-01-16 00:30:00 +00:00
|
|
|
"WebGl2RenderingContext",
|
2021-11-13 11:32:01 +00:00
|
|
|
"WebglDebugRendererInfo",
|
2021-01-04 00:44:02 +00:00
|
|
|
"WebGlRenderingContext",
|
|
|
|
"WheelEvent",
|
|
|
|
"Window",
|
2019-01-04 13:14:32 +00:00
|
|
|
]
|