24 releases (14 breaking)

0.15.2 Aug 20, 2024
0.15.1 May 7, 2024
0.15.0 Apr 3, 2024
0.14.0 Feb 5, 2024
0.1.1 May 23, 2018

#49 in Parser implementations

Download history 46341/week @ 2024-07-18 44014/week @ 2024-07-25 40624/week @ 2024-08-01 46248/week @ 2024-08-08 46743/week @ 2024-08-15 52968/week @ 2024-08-22 56402/week @ 2024-08-29 54271/week @ 2024-09-05 47928/week @ 2024-09-12 50012/week @ 2024-09-19 55065/week @ 2024-09-26 53579/week @ 2024-10-03 50081/week @ 2024-10-10 60069/week @ 2024-10-17 59735/week @ 2024-10-24 52641/week @ 2024-10-31

231,487 downloads per month
Used in 397 crates (28 directly)

MIT/Apache

190KB
4.5K SLoC

svgtypes

Build Status Crates.io Documentation Rust 1.65+

svgtypes 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

~655KB
~14K SLoC