libsvgparser is a streaming parser/tokenizer for SVG 1.1 Full data format without heap allocations.
It's not a XML parser, since it's not only splits the content into the XML nodes, but also supports SVG types parsing.
See 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"
, is not suppored.<paint>
type is not supported. Example: fill="#linearGradient1 #f00"
.opacity-value
type. It will be parsed as <number>
,
but will be bound to 0..1 range.<percentage>
type is part of <length>
type.Add this to your Cargo.toml
:
toml
[dependencies]
svgparser = "0.0.2"
V0.1.0
- [ ] Parsing f64
from a string is pretty slow (Stream::parse_number
).
V0.2.0
- [ ] Add an <angle>
type support.
libsvgparser is licensed under the MPLv2.0.