{"id":18044575,"url":"https://github.com/linebender/svgtypes","last_synced_at":"2025-05-15T20:00:44.402Z","repository":{"id":31885094,"uuid":"130407731","full_name":"linebender/svgtypes","owner":"linebender","description":"A collection of parsers for SVG types.","archived":false,"fork":false,"pushed_at":"2025-04-19T16:32:28.000Z","size":308,"stargazers_count":73,"open_issues_count":8,"forks_count":17,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-19T19:40:22.203Z","etag":null,"topics":["svg"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linebender.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-04-20T19:52:55.000Z","updated_at":"2025-04-19T16:32:31.000Z","dependencies_parsed_at":"2023-09-27T12:56:47.452Z","dependency_job_id":"7d7d1d6b-8048-4e55-9175-4550a4abdd5d","html_url":"https://github.com/linebender/svgtypes","commit_stats":{"total_commits":121,"total_committers":9,"mean_commits":"13.444444444444445","dds":0.1074380165289256,"last_synced_commit":"53e227a155a9621dc610fed04a4bc4852ba4b64e"},"previous_names":["linebender/svgtypes","razrfalcon/svgtypes"],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linebender%2Fsvgtypes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linebender%2Fsvgtypes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linebender%2Fsvgtypes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linebender%2Fsvgtypes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linebender","download_url":"https://codeload.github.com/linebender/svgtypes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254414457,"owners_count":22067263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["svg"],"created_at":"2024-10-30T18:06:07.262Z","updated_at":"2025-05-15T20:00:43.844Z","avatar_url":"https://github.com/linebender.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# SVG Types\n\n**A collection of parsers for [SVG](https://www.w3.org/TR/SVG2/) types.**\n\n[![Linebender Zulip, #resvg channel](https://img.shields.io/badge/Linebender-%23resvg-blue?logo=Zulip)](https://xi.zulipchat.com/#narrow/channel/465085-resvg)\n[![dependency status](https://deps.rs/repo/github/linebender/svgtypes/status.svg)](https://deps.rs/repo/github/linebender/svgtypes)\n[![Apache 2.0 or MIT license.](https://img.shields.io/badge/license-Apache--2.0_OR_MIT-blue.svg)](#license)\n[![Build status](https://github.com/linebender/svgtypes/workflows/CI/badge.svg)](https://github.com/linebender/svgtypes/actions)\n[![Crates.io](https://img.shields.io/crates/v/svgtypes.svg)](https://crates.io/crates/svgtypes)\n[![Docs](https://docs.rs/svgtypes/badge.svg)](https://docs.rs/svgtypes)\n![](https://img.shields.io/badge/unsafe-forbidden-brightgreen.svg)\n\n\u003c/div\u003e\n\n## Supported SVG types\n\n- [`\u003ccolor\u003e`](https://www.w3.org/TR/css-color-3/)\n- [`\u003cnumber\u003e`](https://www.w3.org/TR/SVG2/types.html#InterfaceSVGNumber)\n- [`\u003clength\u003e`](https://www.w3.org/TR/SVG2/types.html#InterfaceSVGLength)\n- [`\u003cangle\u003e`](https://www.w3.org/TR/SVG2/types.html#InterfaceSVGAngle)\n- [`\u003cviewBox\u003e`](https://www.w3.org/TR/SVG2/coords.html#ViewBoxAttribute)\n- [`\u003cpath\u003e`](https://www.w3.org/TR/SVG2/paths.html#PathData)\n- [`\u003ctransform\u003e`](https://www.w3.org/TR/SVG11/types.html#DataTypeTransformList)\n- [`transform-origin`](https://drafts.csswg.org/css-transforms/#transform-origin-property)\n- [`\u003clist-of-numbers\u003e`](https://www.w3.org/TR/SVG2/types.html#InterfaceSVGNumberList)\n- [`\u003clist-of-lengths\u003e`](https://www.w3.org/TR/SVG2/types.html#InterfaceSVGLengthList)\n- [`\u003clist-of-points\u003e`](https://www.w3.org/TR/SVG11/shapes.html#PointsBNF)\n- [`\u003cfilter-value-list\u003e`](https://www.w3.org/TR/filter-effects-1/#typedef-filter-value-list)\n- [`\u003cpaint\u003e`](https://www.w3.org/TR/SVG2/painting.html#SpecifyingPaint)\n- [`\u003cpreserveAspectRatio\u003e`](https://www.w3.org/TR/SVG11/coords.html#PreserveAspectRatioAttribute)\n- [`\u003cenable-background\u003e`](https://www.w3.org/TR/SVG11/filters.html#EnableBackgroundProperty)\n- [`\u003cIRI\u003e`](https://www.w3.org/TR/SVG11/types.html#DataTypeIRI)\n- [`\u003cFuncIRI\u003e`](https://www.w3.org/TR/SVG11/types.html#DataTypeFuncIRI)\n- [`paint-order`](https://www.w3.org/TR/SVG2/painting.html#PaintOrder)\n- [`\u003cfont-family\u003e`](https://www.w3.org/TR/2018/REC-css-fonts-3-20180920/#font-family-prop)\n- [`font`](https://www.w3.org/TR/css-fonts-3/#font-prop)\n\n## Features\n\n- Complete support of paths, so data like `M10-20A5.5.3-4 110-.1` will be parsed correctly.\n- Implicit path commands will be automatically converted into explicit one.\n- Some SVG2 data types support.\n- Pretty fast.\n\n## Limitations\n\n- Accepts only [normalized](https://www.w3.org/TR/REC-xml/#AVNormalize) values, e.g. an input text should not contain `\u0026#x20;` or `\u0026data;`.\n- All keywords must be lowercase.\n  Case-insensitive parsing is supported only for colors (requires allocation for named colors).\n- The `\u003ccolor\u003e` followed by the `\u003cicccolor\u003e` is not supported.\n  As the `\u003cicccolor\u003e` itself.\n- [System colors](https://www.w3.org/TR/css3-color/#css2-system), like `fill=\"AppWorkspace\"`, are not supported.\n  They were deprecated anyway.\n\n## Safety\n\n- The library should not panic. Any panic considered as a critical bug and should be reported.\n- The library forbids unsafe code.\n\n## Alternatives\n\nNone.\n\n## Minimum supported Rust Version (MSRV)\n\nThis version of SVG Types has been verified to compile with **Rust 1.65** and later.\n\nFuture versions of SVG Types might increase the Rust version requirement.\nIt will not be treated as a breaking change and as such can even happen with small patch releases.\n\n\u003cdetails\u003e\n\u003csummary\u003eClick here if compiling fails.\u003c/summary\u003e\n\nAs time has passed, some of SVG Types's dependencies could have released versions with a higher Rust requirement.\nIf you encounter a compilation issue due to a dependency and don't want to upgrade your Rust toolchain, then you could downgrade the dependency.\n\n```sh\n# Use the problematic dependency's name and version\ncargo update -p package_name --precise 0.1.1\n```\n\u003c/details\u003e\n\n## Community\n\n[![Linebender Zulip, #resvg channel](https://img.shields.io/badge/Linebender-%23resvg-blue?logo=Zulip)](https://xi.zulipchat.com/#narrow/channel/465085-resvg)\n\nDiscussion of SVG Types development happens in the Linebender Zulip at \u003chttps://xi.zulipchat.com/\u003e, specifically the [#resvg channel](https://xi.zulipchat.com/#narrow/channel/465085-resvg).\nAll public content can be read without logging in.\n\n## License\n\nLicensed under either of\n\n- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n- MIT license ([LICENSE-MIT](LICENSE-MIT) or \u003chttp://opensource.org/licenses/MIT\u003e)\n\nat your option.\n\n## Contribution\n\nContributions are welcome by pull request. The [Rust code of conduct] applies.\nPlease feel free to add your name to the [AUTHORS] file in any substantive pull request.\n\nUnless 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 licensed as above, without any additional terms or conditions.\n\n[Rust Code of Conduct]: https://www.rust-lang.org/policies/code-of-conduct\n[AUTHORS]: ./AUTHORS\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinebender%2Fsvgtypes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinebender%2Fsvgtypes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinebender%2Fsvgtypes/lists"}