Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upServo on Desktop: maybe use libsimpleservo + libui? #22868
Closed
Comments
|
Nah. We should have a UIKit view, a UWP control, and a GTK widget. It's really not hard to build. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure about that just yet, but maybe it's worth considering.
I recently added OpenGL support for Mac and Linux, and Windows support via EGL+Angle should not be too hard to achieve. Additionally, the C API appears to work.
The current Desktop servo app is build in Rust. One of the issue with Winit/Glutin is that it requires a full window GL buffer (or some hacky workaround to add widgets). In #21333 I describe a way to build the UI with WR, but maybe a better approach is to build the UI with whatever crossplatform toolkit + language and use Servo via libsimpleservo.
I was thinking of using libui. I am also thinking of not using any of its Rust ports, but directly the C version. Not using Rust at the embedder level is harder, but it's what the rest of the world will be doing anyway.
I've built a proof of concept (requires few tweaks in libui and in servo, but all are WIP PRs) that just render a page (no interactions).
If we go this way, adding url bars, tabs, etc, will be a lot easier.