Add EdgeHTML notes to READMEs

This commit is contained in:
zxey
2019-09-29 11:37:17 +02:00
committed by Richard Hozák
parent 023a4e3b08
commit 7e32701b53
2 changed files with 8 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ This library provides Rust bindings for the [webview](https://github.com/zserge/
It supports two-way bindings for communication between the Rust backend and JavaScript frontend.
It uses Cocoa/WebKit on macOS, gtk-webkit2 on Linux and MSHTML (IE10/11) on Windows, so your app will be **much** leaner than with Electron.
It uses Cocoa/WebKit on macOS, gtk-webkit2 on Linux and MSHTML (IE10/11) or EdgeHTML (with the `edge` feature) on Windows, so your app will be **much** leaner than with Electron.
For usage info please check out [the examples](../../tree/master/examples) and the [original readme](https://github.com/zserge/webview/blob/master/README.md).

View File

@@ -40,8 +40,15 @@ $ cargo run --example elm-counter
```
## actix
Uses [rust-embed](https://github.com/pyros2097/rust-embed) and [actix-web](https://github.com/actix/actix-web) to embed files directly in binary and serve them to web-view.
Unfortunately if you run this with the EdgeHTML backend (`edge` feature) it won't work by default due to webview sandbox restrictions.
In order for this to run on EdgeHTML, you need to run `CheckNetIsolation.exe LoopbackExempt -a -n="Microsoft.Win32WebViewHost_cw5n1h2txyewy"` from your administrator command prompt only once and everything works.
You can make this step for example as a part of your apps installer.
---
Note: For some reason (at least on Windows), if I try to `cargo run` the examples directly, they don't show the window, but it works with `cargo build --example <name> && target\debug\examples\<name>`