Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Has anybody written a nice DOM wrapper for C++/Rust? So you can do everything from the comforts of the C++/Rust application? The API whould match JavaScript APIs as much as possible.


Sure, in Rust the web-sys [1] crate provides auto-generated bindings for pretty much all the browser APIs.

Has been used by most of the Rust web frontend frameworks for years.

It all has to go through JS shims though, limiting the performance potential.

[1] https://docs.rs/web-sys/latest/web_sys/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: