Crates.io | svgparser |
lib.rs | svgparser |
version | 0.8.1 |
source | src |
created_at | 2016-08-26 12:26:57.943316 |
updated_at | 2018-04-21 15:06:43.54976 |
description | Featureful, pull-based, zero-allocation SVG parser. |
homepage | |
repository | https://github.com/RazrFalcon/svgparser |
max_upload_size | |
id | 6126 |
size | 214,198 |
DEPRECATED. Use svgtypes
instead.
svgparser is a pull-based parser for SVG 1.1 Full data format without heap allocations.
It's not an XML parser since it does not only split the content into the XML nodes, but also supports SVG types parsing.
See the documentation for details.
M10-20A5.5.3-4 110-.1
will be parsed correctly.auto
, normal
, none
, inherit
, etc. are parsed as enum
, not as String
.<color>
followed by the <icccolor>
is not supported. As the <icccolor>
itself.style
attribute.fill="AppWorkspace"
, are not supported.opacity-value
type. It will be parsed as <number>
,
but will be bound to 0..1 range.svgparser
features.
Also has minimal writing capabilities, unlike svgparser
, which is parser only.If you need writing and DOM manipulations - checkout
svgdom crate, which is built on top of svgparser
.
If you know about other alternatives - please send a pull request.
Dependency: Rust >= 1.18
Add this to your Cargo.toml
:
[dependencies]
svgparser = "0.8"
Licensed under either of
at your option.
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.