Exposing C and Rust APIs: some thoughts from librsvg

from blog Federico's Blog, | ↗ original
Librsvg exports two public APIs: the C API that is in turn available to other languages through GObject Introspection, and the Rust API. You could call this a use of the facade pattern on top of the rsvg_internals crate. That crate is the actual implementation of librsvg, and exports an …