svgrtypes

Crates.iosvgrtypes
lib.rssvgrtypes
version0.42.2
sourcesrc
created_at2022-10-31 14:50:23.338241
updated_at2024-05-13 16:10:01.910524
descriptionSVG types parser.
homepage
repositoryhttps://github.com/dmtrKovalenko/svgrtypes
max_upload_size
id702246
size224,408
Dmitriy Kovalenko (dmtrKovalenko)

documentation

https://docs.rs/svgrtypes/

README

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.

Commit count: 0

cargo fmt