![]() Of other GNOME-adjacent libraries), it does have a "glib interface" (alongsideĪ QT interface), and that glib interface has a. Xpdf (and so it looks different from a lot Side of it, gtk-rs/gir was "only" started inĪnd like I said earlier, even though poppler is actually an offshoot from Git history is to be trusted, they've started their effort in 2004! The Rust Have found very little documentation about it, and at least one person claimedĪnd, well, the GNOME project has been doing the same thing! If the More information), and the reference definitions look like this (as seen through They actually have machinery involving clang and. That's what folks at Microsoft are doing with Representation of the API as a structured language (that specifically isn'tĬ), and then from there you can generate bindings with it. So what a bunch of folks have been doing instead, is to have some canonical I know that because I once triedĬonverted #ifdef blocks into cargo features. And APIsĪPIs are typically defined as a bunch of C headers, and that isn't In the year of our lord 2021, we could all use a little introspection. Can we use it to generate bindings before this articleīecomes so large it crashes your browser? Let's find out! There is a popplerĬrate on crates.io, but it is hopelessly out-of-date.īut the good news is: there's existing tooling for glib-based C libraries, and But the folks working on them are focusing mainly on cairo, gio, GNOME has a pretty good story when it comes to Rust Ideally we'd be able to just do it fromĬode, since we don't want any external dependencies (Chrome being the notable, Is only defined once, and then re-used a bunch of timesīut, well, we used a CLI tool to do it.
0 Comments
Leave a Reply. |