{"id":20831780,"url":"https://github.com/linebender/simplecss","last_synced_at":"2025-12-12T12:29:14.026Z","repository":{"id":41523123,"uuid":"76963934","full_name":"linebender/simplecss","owner":"linebender","description":"A simple CSS 2.1 parser and selector","archived":false,"fork":false,"pushed_at":"2024-11-17T01:17:24.000Z","size":76,"stargazers_count":35,"open_issues_count":2,"forks_count":11,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-11-17T02:23:36.996Z","etag":null,"topics":[],"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}},"created_at":"2016-12-20T14:36:16.000Z","updated_at":"2024-11-17T01:17:28.000Z","dependencies_parsed_at":"2024-11-17T02:22:23.870Z","dependency_job_id":"d20672c4-d5ad-4322-87f3-e3f0a397bbbd","html_url":"https://github.com/linebender/simplecss","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linebender%2Fsimplecss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linebender%2Fsimplecss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linebender%2Fsimplecss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linebender%2Fsimplecss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linebender","download_url":"https://codeload.github.com/linebender/simplecss/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225106472,"owners_count":17421804,"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":[],"created_at":"2024-11-18T00:06:57.075Z","updated_at":"2025-12-12T12:29:13.982Z","avatar_url":"https://github.com/linebender.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# SimpleCSS\n\n**A simple [CSS 2.1](https://www.w3.org/TR/CSS21/) parser and selector.**\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/simplecss/status.svg)](https://deps.rs/repo/github/linebender/simplecss)\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/simplecss/workflows/CI/badge.svg)](https://github.com/linebender/simplecss/actions)\n[![Crates.io](https://img.shields.io/crates/v/simplecss.svg)](https://crates.io/crates/simplecss)\n[![Docs](https://docs.rs/simplecss/badge.svg)](https://docs.rs/simplecss)\n![](https://img.shields.io/badge/unsafe-forbidden-brightgreen.svg)\n\n\u003c/div\u003e\n\nThis is not a browser-grade CSS parser.\nIf you need one, use [cssparser](https://crates.io/crates/cssparser) + [selectors](https://crates.io/crates/selectors).\n\nSince it's very simple we will start with limitations:\n\n## Limitations\n\n- [At-rules](https://www.w3.org/TR/CSS21/syndata.html#at-rules) are not supported.\n  They will be skipped during parsing.\n- Property values are not parsed.\n  In CSS like `* { width: 5px }` you will get a `width` property with a `5px` value as a string.\n- CDO/CDC comments are not supported.\n- Parser is case sensitive.\n  All keywords must be lowercase.\n- Unicode escape, like `\\26`, is not supported.\n\n## Features\n\n- Selector matching support.\n- The rules are sorted by specificity.\n- `!important` parsing support.\n- Has a high-level parsers and low-level, zero-allocation tokenizers.\n- No unsafe.\n\n## Minimum supported Rust Version (MSRV)\n\nThis version of SimpleCSS has been verified to compile with **Rust 1.65** and later.\n\nFuture versions of SimpleCSS 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 SimpleCSS'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 SimpleCSS 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%2Fsimplecss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinebender%2Fsimplecss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinebender%2Fsimplecss/lists"}