Sanitize the public error types
rsvg_internals::LoadingError
and RenderingError
contain some error codes that are for internal use only, like LoadingError::BadDataUrl
or RenderingError::CircularReference
.
I think we can start by having librsvg_crate have its own LoadingError
and RenderingError
types that get distilled from the internals types above. Then audit the internals to see why the internal-only errors may "escape" to the public API and guarantee that they don't.