Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

embedding servo in a C application#32618

Answeredbymrobinson
vtorri asked this question inQ&A
Discussion options

I want to display epub content in a viewer application which is written in C. Are there some examples which show how to use servo in a C application ?

You must be logged in to vote

We do not have any examples of using Servo in a C application. You'd need to expose the entire Rust API via a C-compatible interface, which would likely be a good deal of work. We hope to have a C or C++ compatible API at some point though.

Replies: 3 comments 3 replies

Comment options

We do not have any examples of using Servo in a C application. You'd need to expose the entire Rust API via a C-compatible interface, which would likely be a good deal of work. We hope to have a C or C++ compatible API at some point though.

You must be logged in to vote
2 replies
@vtorri
Comment options

any improvements about this since last year ?

@jdm
Comment options

jdmSep 26, 2025
Maintainer

We still have not exposed a C API for the Rust embedding API; it has gone through a lot of changes in the past 6 months.

Answer selected byvtorri
Comment options

Do you have a link to real documentation? (I only just started looking into Servo but didn't find much on the main Web site.) Here's the situation:

Been in IT roughly 40 years. Started out on real computers that had to have real computer rooms, down to desktops, and finally spent the last decade in the embedded systems world, mostly medical devices. The tools in the medical devic/embedded systems world either A) suck or B) cost 27 vital organs and your first 6 children.

I had hoped that CopperSpice's port of Qt 4.8.x would amount to something, but they are too enamored with C++ compiler standards to create something usable. After years of trying to explain to them they will die poor and lonely going down that road, I finally had enough and recentlyfully forked Project will get a rename and most likely move to SourceForge once it is further downthe roadmap.

During the code cleanup and packaging stage it is becoming painfully obvious they have the old Webkit from 4.8.x days and just hacked things off to where it would "run." That has me poking around and after first looking at RDK (way too big of a whale I think) and absolutely refusing to use Blink due to Google's fetish for spy-ware, I stumbled on Servo. At first blush this looks like a good thing to put a C++ wrapper around so it can be a widget in an application.

Don't need an answer immediately. Need to get all of the graphics back ends ripped out and replaced with only GLFW. (A large number of Qt bugs are the result of them rolling their own plugins for display instead of using a single robust well tested layer.) That's the point in time I think the project will get its rename. Post rename would be a good time to jettison the Webkit and start on a wrapper for the embedded browser widget.

Mostly thinking out loud here.

Oh. Until I'm done with the formal packaging scripts, I'm not merging into main. If you are looking for what is "now" you have to look at ls-cs-0.1.0 branch.

At any rate, a link to the documentation you have would be great!

You must be logged in to vote
1 reply
@jdm
Comment options

jdmSep 26, 2025
Maintainer

Comment options

I too would love to see a C or C++API.

I can't wait to replace WebVIew2 and WKWebView.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
5 participants
@vtorri@mrobinson@jdm@RolandHughes@aidv

[8]ページ先頭

©2009-2025 Movatter.jp