3 releases (breaking)

0.3.0 Apr 23, 2023
0.2.0 Mar 25, 2023
0.1.0 Feb 4, 2023

#11 in #svg-parser

Download history 1161/week @ 2023-12-14 822/week @ 2023-12-21 834/week @ 2023-12-28 931/week @ 2024-01-04 1576/week @ 2024-01-11 1830/week @ 2024-01-18 1334/week @ 2024-01-25 1264/week @ 2024-02-01 1644/week @ 2024-02-08 2215/week @ 2024-02-15 1870/week @ 2024-02-22 1793/week @ 2024-02-29 1716/week @ 2024-03-07 1654/week @ 2024-03-14 1452/week @ 2024-03-21 1284/week @ 2024-03-28

6,434 downloads per month

MIT/Apache

82KB
2K SLoC

rosvgtree

Crates.io Documentation Rust 1.65+

Represent an SVG document as a read-only tree.

Note that while this is a public crate, it's designed with usvg in mind. You should treat it is as usvg internals.

Purpose

SVG is notoriously hard to parse. And while it is technically an XML superset, parsing it using just an XML library would be hard. Therefore we would be better off with a post-processed XML tree.

And this is exactly what rosvgtree does. It creates a roxmltree-like tree, but tailored to SVG parsing needs.

A complete list of post-processing steps can be found here.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~1MB
~25K SLoC