4 ms·
Rust has the ability to expose a C API. So, I don't see it as a non-starter. It's just that no one bothered to expose it. EDIT: I'm wrong, but I do think the
by Ygg2 6y ago
Rust has the ability to expose a C API. So, I don't see it as a non-starter.
It's just that no one bothered to expose it.
EDIT: I'm wrong, but I do think the documentation isn't that great.
https://github.com/servo/servo/tree/master/ports/libsimpleservo/capi https://github.com/servo/servo/tree/master/ports/libsimplese...
https://github.com/paulrouget/servo-embedding-example https://github.com/paulrouget/servo-embedding-example
- andrewmcwatters 6y ago> It's just that no one bothered to expose it. Almost the entire quick start guide is about using Rust. So you know, if I want to embed it, how do I do it? If I need a view offscreen rendered to a framebuffer, how do I get it? Can I blit? If so, how? How do I pass events to the browser abstraction? Servo talks about none of these things and leaves it up to you, but 110% emphasizes everything possible about Rust. I don't care about Rust, I care about embedding web technologies. So how do I do it? They don't explain. The front page prioritizes these things, in this order: * How to use Rust * How to contribute to Servo * Servo's blog * How Servo is governed * How to donate to Servo * Contacting those involved with Servo * Downloading Servo None of those things point me in the direction of how to embed it. Maybe they should spent more time catering to the people they claim to be providing the software for and less to the Rust crowd.
- Ygg2 6y agoHaving looked at it more, it seems servo does expose C API. The part I was working on doesn't. Anyway servo comes with libservo and libservosimple. Admittedly they don't seem to be well documented for people coming from C world. Perhaps you might want to comment on raise an issue for Servo? I haven't worked on it in quite a while.
- andrewmcwatters 6y agoWhy would I ask people working on embeddable web technologies how to embed their software? They should just tell me. I don't care that there's 19 people on their "technical steering committee" if not a single one of those 19 people is responsible for actual adoption. If they don't have a getting started guide for people like me to actually embed and use the software it's a waste of my time and hypeware or vaporware depending on how you want to look at it. 18k stars and I know there aren't 18k embedders out there.