mirror of
https://github.com/tauri-apps/web-view.git
synced 2026-02-04 02:11:18 +01:00
Add EdgeHTML notes to READMEs
This commit is contained in:
@@ -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).
|
||||
|
||||
|
||||
@@ -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>`
|
||||
|
||||
Reference in New Issue
Block a user