SVG libraries for Rust
- resvg renders static SVG to pixels. It has the most complete SVG support of any non-browser renderer, is written entirely in Rust (no C dependencies), and gives identical output on every platform. Its parser, usvg, turns any SVG into a simplified tree (only paths, images, text and groups) that you can inspect or render with your own backend. It also has a C API and a command line tool.
- svg composes SVG documents from typed element builders and parses SVG into a stream of events, including a parser for path data. It doesn’t render.
Use resvg to rasterize or to read the geometry of arbitrary SVG; use the svg crate to write SVG or to do light parsing. librsvg is also available as the librsvg crate if you already depend on Cairo.
- resvg resvg is a pure Rust SVG renderer with the most complete static SVG support outside browsers. How to add it, convert SVG to PNG, render at a size, load fonts.
- svg The svg crate composes and parses SVG documents in Rust. How to add it, build a document with paths, shapes and text, save it, and parse an SVG file.