svgwriter

svgwriter is a typed library for writing correct SVG files. It includes SVG
specification and documentation from mdn.
Example
use ;
let mut svg = new;
let size = 100;
svg.set_width;
svg.set_height;
svg.set_view_box;
// draw a heart, inspired by https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#example
let d = 40;
let padding = size / 2 - d;
let mut heart = new;
heart
.move_to
.arc_by
.arc_by
.quad_by
.quad_by;
svg.push;
// write the svg to a file
write!;
This code produces the following image: