You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.4 KiB

[package]
name = "egui_web"
4 years ago
version = "0.7.0"
authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
description = "Bindings for compiling Egui code to WASM for a web page"
license = "MIT OR Apache-2.0"
edition = "2018"
homepage = "https://github.com/emilk/egui"
readme = "README.md"
repository = "https://github.com/emilk/egui"
categories = ["gui", "graphics"]
keywords = ["wasm", "web", "egui", "gui", "gamedev"]
include = [ "**/*.rs", "Cargo.toml"]
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
4 years ago
egui = { version = "0.7.0", path = "../egui" }
epi = { version = "0.7.0", path = "../epi" }
js-sys = "0.3"
serde = { version = "1", optional = true }
serde_json = { version = "1", optional = true }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
[features]
default = []
http = [
"epi/http",
"web-sys/Headers",
"web-sys/Request",
"web-sys/RequestInit",
"web-sys/RequestMode",
"web-sys/Response",
]
persistence = ["serde", "serde_json"]
[dependencies.web-sys]
version = "0.3"
features = [
"Clipboard",
"ClipboardEvent",
"console",
"CssStyleDeclaration",
"DataTransfer",
"Document",
"DomRect",
"Element",
"HtmlCanvasElement",
"HtmlElement",
"KeyboardEvent",
"Location",
"MouseEvent",
"Navigator",
"Performance",
"Storage",
"Touch",
"TouchEvent",
"TouchList",
"WebGlBuffer",
"WebGlProgram",
"WebGlRenderingContext",
"WebGlShader",
"WebGlTexture",
"WebGlUniformLocation",
"WheelEvent",
"Window",
]