From 99fa650fa7f84a6689dc0f1c41212498c7d1306b Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sat, 28 Nov 2020 13:54:47 +0100 Subject: [PATCH] [egui_web] Document required RUSTFLAGS=--cfg=web_sys_unstable_apis --- egui_web/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/egui_web/README.md b/egui_web/README.md index 5fc5031a..263f2782 100644 --- a/egui_web/README.md +++ b/egui_web/README.md @@ -8,3 +8,5 @@ This crates allows you to compile GUI code written with [Egui](https://crates.io/crates/egui) to [WASM](https://en.wikipedia.org/wiki/WebAssembly) to run on a web page. Check out [docs/index.html](https://github.com/emilk/egui/blob/master/docs/index.html), [demo_web](https://github.com/emilk/egui/tree/master/demo_web) and [build_web.sh](https://github.com/emilk/egui/blob/master/build_web.sh) for examples of how to set it up. + +To use `egui_web`, you need to set the `RUSTFLAGS=--cfg=web_sys_unstable_apis` flag.