svgtypes
SVG types parser.
0.16.1
26M downloads/mo
#1831 most downloaded on crates.io
linebender/svgtypes
What this package is like to depend on
Last release 7 months ago
09 Jan 2026
Release timing varies
gaps range from 5 weeks to 9 months
Nearly every release is documented
notes for 26 of 27 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
27 releases · first in 2018
2 releases in the last 12 months
see the full history below
Release timeline
27 releases · Apr 2018 to Jan 2026Releases
latest 27-
0.16.109 Jan 2026Release notes
Open source →Release notes
Open source →This release has an [MSRV][] of 1.85.
Changed
- Update Kurbo to v0.13. ([#60][] by [@nicoburns][])
-
0.16.026 Oct 2025Release notes
Open source →This release has an [MSRV][] of 1.82.
Added
- Add helper functions to PathSegment ([#37][] by [@LaurenzV][])
Changed
- Update Kurbo to v0.12. ([#56][] by [@HaHa421][])
-
0.15.320 Jan 2025Release notes
Open source →This release has an MSRV of 1.65.
This is the first release under the stewardship of Linebender, who is now responsible for maintenance of this crate.
Many thanks to Yevhenii Reizner for the years of hard work that he has poured into this and other crates.Added
Fixed
- Round hues in HSL to RGB conversion. (#34 by @erxclau)
- Correct rounding of alpha. (#35 by @waywardmonkeys)
Changed
- Set the MSRV in
Cargo.tomland updated the edition to 2021. (#40 by @tomcur) - Simplify color component rounding and bounds checking. (#43 , #44 by @tomcur)
New Contributors
- @waywardmonkeys made their first contribution in #26
- @erxclau made their first contribution in #31
- @tomcur made their first contribution in #40
Full Changelog: v0.15.2...v0.15.3
Release notes
Open source →This release has an [MSRV][] of 1.65.
This is the first release under the stewardship of [Linebender][], who is now responsible for maintenance of this crate. Many thanks to Yevhenii Reizner for the years of hard work that he has poured into this and other crates.
Added
- Support floating point hue in
hsl()andhsla(). ([#31][] by [@erxclau][])
Fixed
- Round hues in HSL to RGB conversion. ([#34][] by [@erxclau][])
- Correct rounding of alpha. ([#35][] by [@waywardmonkeys][])
Changed
- Set the MSRV in
Cargo.tomland updated the edition to 2021. ([#40][] by [@tomcur][]) - Simplify color component rounding and bounds checking. ([#43][] , [#44][] by [@tomcur][])
-
0.15.220 Aug 2024 -
0.15.107 May 2024 -
0.15.003 Apr 2024 -
0.14.005 Feb 2024Release notes
Open source →Added
font-familyparsing. ([#20][] by [@LaurenzV][])fontshorthand parsing. ([#21][] by [@LaurenzV][])
-
0.13.003 Dec 2023Release notes
Open source →Added
Paint::ContextFillandPaint::ContextStroke. ([#17][] by [@LaurenzV][])transform-originparsing. ([#18][] by [@LaurenzV][])
-
0.12.001 Oct 2023Release notes
Open source →Added
- Allow parsing of float RGB values from CSS Color 4 draft like
rgb(3.14, 110, 201). The values itself would still be stored asu8. ([#14][] by [@yisibl][]) - Allow quotes in FuncIRI. ([#15][] by [@romanzes][])
- Allow parsing of float RGB values from CSS Color 4 draft like
-
0.11.025 Mar 2023Release notes
Open source →Added
SimplifyingPathParserhandles implicit MoveTo commands after ClosePath now. Previously,M 10 20 L 30 40 Z L 50 60would have been parsed as is, but now it will be parsed asM 10 20 L 30 40 Z M 10 20 L 50 60.
-
0.10.004 Feb 2023 -
0.9.025 Dec 2022Release notes
Open source →Added
SimplifyingPathParserthat allows parsing an already simplified Path Data.
-
0.8.222 Oct 2022 -
0.8.111 Jun 2022Release notes
Open source →Added
- Support #RRGGBBAA and #RGBA color notation as per CSS Color 4. ([#13][] by [@demurgos]]
-
0.8.012 Sep 2021Release notes
Open source →Added
EnableBackgroundNumber. Previously accessible viaSteam::parse_number.IRI. Previously accessible viaSteam::parse_iri.FuncIRI. Previously accessible viaSteam::parse_func_iri.
Changed
Streamis now private.
-
0.7.004 Sep 2021Release notes
Open source →Breaking: Almost a complete rewrite. This crate is strictly a parser from now.
Added
<filter-value-list>parsing usingFilterValueListParser.ViewBoxError
Removed
- Writing support.
- Container types. Only stack allocated types and pull-based parsers are available.
FuzzyEqandFuzzyZero.
-
0.6.022 Aug 2021Release notes
Open source →Added
- CSS3 colors support (
rgba,hsl,hsla,transparent). turnangle unit.Angle::to_degrees.
Changed
- Move to Rust 2018 edition.
- Rename
Stream::skip_stringintoStream::consume_string. - Rename
Color::newintoColor::new_rgb. Colorstruct gained analphafield.- Rename
Angle::numintoAngle::number. - Rename
Length::numintoLength::number.
- CSS3 colors support (
-
0.5.012 Aug 2019Release notes
Open source →Added
- Implement
DefaultforLength,LengthList,NumberList,PointsandPath.
Changed
- The minimum Rust version is 1.31
Removed
PathBuilder. UsePath::push_*instead.Styleparser. Use an external CSS parser instead, likesimplecss.ElementIdandAttributeId.phfdependency. Onlysiphasheris used now.
- Implement
-
0.4.411 Jun 2019 -
0.4.310 Jun 2019Release notes
Open source →Added
Transform::prepend.- Implement
FuzzyEqandFuzzyZeroforf32. - Parsing of
Color,Paint,ElementIdandAttributeIdcan be disabled now.
-
0.4.215 Mar 2019 -
0.4.106 Jan 2019 -
0.4.002 Jan 2019Release notes
Open source →Added
- An
anglevalue type.
Changed
Length::from_strwill return an error if an input string has trailing data. So length like1mmxwas previously parsed without errors.
- An
-
0.3.013 Dec 2018Release notes
Open source →Changed
PathParserwill returnResult<PathSegment>instead ofPathSegmentfrom now.Errorwas rewritten.
Removed
FromSpantrait. UseFromStr.StrSpan. All strings are&strnow.TextPos. All errors have position in characters now.xmlparserdependency.logdependency.
-
0.2.012 Sep 2018Release notes
Open source →Added
black,white,gray,red,greenandblueconstructors to theColorstruct.
Changed
StyleParserwill return(StrSpan, StrSpan)and notStyleTokenfrom now.StyleParserrequires entity references to be resolved before parsing from now.
Removed
failuredependency.StyleToken.Error::InvalidEntityRef.
-
0.1.123 May 2018Release notes
Open source →Added
encodingandstandaloneto AttributeId.new_translate,new_scale,new_rotate,new_rotate_at,new_skew_x,new_skew_yandrotate_atmethods to theTransform.
Changed
StreamExt::parse_iriandStreamExt::parse_func_iriwill parse not only well-formed data now.
Fixed
Paint::from_spanpoor performance.
-
0.1.021 Apr 2018Nothing published for this version