easy-svg
Typed Rust SVG builders generated at compile time from the offline MDN reference
in SVG/. Elements, attributes, permitted children, value helpers, and hover
documentation update when the reference is replaced.
use ;
let svg = new
.view_box
.add_child;
assert_eq!;
Parents expose typed .add_child(...) and .add_children(...) methods.
Open-ended values accept strings; .attr(...) and .add_child_unchecked(...)
are escape hatches to build invalid SVGs.
Use .to_string_pretty() for copy-friendly output.
To regenerate after replacing SVG/: