mirror of
https://github.com/emilk/egui.git
synced 2026-09-03 07:10:04 -04:00
Fix HTTP web demo (#3407)
* Revert ttf-parser from 0.19.2 to 0.19.1 0.19.2's doesn't work with wasm in debug builds * Update to poll-promise 0.3.0 * Publish new web demo * Fix typo in changelog * Explain why image_viewer is not part of the official web demo app * Fix typos * Make rfd native-only dependency
This commit is contained in:
@@ -18,6 +18,9 @@ crate-type = ["cdylib", "rlib"]
|
||||
[features]
|
||||
default = ["glow", "persistence"]
|
||||
|
||||
# image_viewer adds about 0.9 MB of WASM
|
||||
web_app = ["http", "persistence", "web_screen_reader"]
|
||||
|
||||
http = ["ehttp", "image", "poll-promise", "egui_extras/image"]
|
||||
image_viewer = ["image", "egui_extras/all_loaders", "rfd"]
|
||||
persistence = ["eframe/persistence", "egui/persistence", "serde"]
|
||||
@@ -50,7 +53,6 @@ bytemuck = { version = "1.7.1", optional = true }
|
||||
egui_extras = { version = "0.23.0", path = "../egui_extras", features = [
|
||||
"image",
|
||||
] }
|
||||
rfd = { version = "0.11", optional = true }
|
||||
|
||||
# feature "http":
|
||||
ehttp = { version = "0.3.1", optional = true }
|
||||
@@ -58,7 +60,7 @@ image = { version = "0.24", optional = true, default-features = false, features
|
||||
"jpeg",
|
||||
"png",
|
||||
] }
|
||||
poll-promise = { version = "0.2", optional = true, default-features = false }
|
||||
poll-promise = { version = "0.3", optional = true, default-features = false }
|
||||
|
||||
# feature "persistence":
|
||||
serde = { version = "1", optional = true, features = ["derive"] }
|
||||
@@ -67,6 +69,7 @@ serde = { version = "1", optional = true, features = ["derive"] }
|
||||
# native:
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||
env_logger = "0.10"
|
||||
rfd = { version = "0.11", optional = true }
|
||||
|
||||
# web:
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
|
||||
Reference in New Issue
Block a user