How to open browser inside iced app?

Hi, I’d like to open a web page inside iced app, any way to do this please? I didn’t find something like WebView widget.

I found this crate , web-view - crates.io: Rust Package Registry, I will try it first.

The document of web-view - crates.io: Rust Package Registry is not clear, I just want to open a url with inside iced app. it seems this crate is to develop hybrid app.

What you want is far from simple. There is currerntly no implementation for embedding a web browser into iced.
You probably need to develop that by yourself.

Haha, 10 years complex feature for me.

Maybe it is worth to try this one, tauri-apps/wry: Cross-platform WebView library in Rust for Tauri. (github.com).

Did you had any success?

I have not tried it, but I believe it is worth trying the tauri-apps/wry crate

I’m trying it but a lot of issues heppened… did u have success on this?

No. I tried using wry but failed. Probably gave up to soon.

@francesco-gaglione @videni this was posted on the iced discord.
You could probably use the code to create a webview/browser in your app.

I just extracted the webview widget from icy_browser

its still pretty new and has issues, but feedback is welcome.

1 Like

An integration with Servo would also be interesting, since it is written in Rust as well which should makes things easier. An additional browser engine written in Rust was announced in the past few days: https://gosub.io/.

I actually saw the same thing. I made my webview widget engine agnostic with the hope of pairing it with rust browsing engine. Ill look into this an hopefully get it implemented soon!

2 Likes

@LegitCamper Good job, Wish it works soon.