rosvgtree

Crates.iorosvgtree
lib.rsrosvgtree
version0.3.0
sourcesrc
created_at2023-02-04 18:34:21.086447
updated_at2023-04-23 15:48:15.837781
descriptionRepresent an SVG as a read-only tree.
homepage
repositoryhttps://github.com/RazrFalcon/resvg
max_upload_size
id776552
size102,221
Yevhenii Reizner (RazrFalcon)

documentation

https://docs.rs/rosvgtree/

README

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.

Commit count: 1121

cargo fmt