18 releases (6 breaking)

1.1.1 Mar 21, 2024
0.43.2 Oct 24, 2024
0.43.1 Sep 22, 2024
0.42.2 May 13, 2024
0.8.3 Nov 20, 2022

#844 in Parser implementations

Download history 22/week @ 2024-07-14 3/week @ 2024-07-21 15/week @ 2024-07-28 3/week @ 2024-08-04 1/week @ 2024-08-11 17/week @ 2024-08-25 13/week @ 2024-09-01 49/week @ 2024-09-15 363/week @ 2024-09-22 59/week @ 2024-09-29 7/week @ 2024-10-06 1/week @ 2024-10-13 192/week @ 2024-10-20 90/week @ 2024-10-27

292 downloads per month
Used in 8 crates (2 directly)

MIT/Apache

210KB
6K SLoC

svgrtypes

Build Status Crates.io Documentation Rust 1.31+

svgrtypes is a collection of parsers for SVG types.

Supported SVG types

Features

  • Complete support of paths, so data like M10-20A5.5.3-4 110-.1 will be parsed correctly.
  • Implicit path commands will be automatically converted into explicit one.
  • Some SVG2 data types support.
  • Pretty fast.

Limitations

  • Accepts only normalized values, e.g. an input text should not contain   or &data;.
  • All keywords must be lowercase. Case-insensitive parsing is supported only for colors (requires allocation for named colors).
  • The <color> followed by the <icccolor> is not supported. As the <icccolor> itself.
  • System colors, like fill="AppWorkspace", are not supported. They were deprecated anyway.

Safety

  • The library should not panic. Any panic considered as a critical bug and should be reported.
  • The library forbids unsafe code.

Alternatives

None.

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

~665KB
~14K SLoC