3 releases (breaking)

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

#11 in #read-only

Download history 960/week @ 2024-07-22 914/week @ 2024-07-29 980/week @ 2024-08-05 828/week @ 2024-08-12 1268/week @ 2024-08-19 1114/week @ 2024-08-26 1078/week @ 2024-09-02 823/week @ 2024-09-09 974/week @ 2024-09-16 923/week @ 2024-09-23 879/week @ 2024-09-30 762/week @ 2024-10-07 1063/week @ 2024-10-14 1467/week @ 2024-10-21 1274/week @ 2024-10-28 1288/week @ 2024-11-04

5,158 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