{"id":13432815,"url":"https://github.com/postcss-rs/postcss-rs","last_synced_at":"2025-04-05T04:14:13.637Z","repository":{"id":43378210,"uuid":"418383948","full_name":"postcss-rs/postcss-rs","owner":"postcss-rs","description":"🚀 Fast and 100% API compatible postcss replacer, built in Rust","archived":false,"fork":false,"pushed_at":"2022-10-31T16:07:24.000Z","size":1411,"stargazers_count":559,"open_issues_count":14,"forks_count":19,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-03-29T03:09:46.609Z","etag":null,"topics":["ast","css","postcss","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/postcss-rs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-18T07:06:58.000Z","updated_at":"2025-03-06T05:38:55.000Z","dependencies_parsed_at":"2022-07-16T15:47:03.183Z","dependency_job_id":null,"html_url":"https://github.com/postcss-rs/postcss-rs","commit_stats":null,"previous_names":["justjavac/postcss-rs"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postcss-rs%2Fpostcss-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postcss-rs%2Fpostcss-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postcss-rs%2Fpostcss-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postcss-rs%2Fpostcss-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postcss-rs","download_url":"https://codeload.github.com/postcss-rs/postcss-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284952,"owners_count":20913704,"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":["ast","css","postcss","rust"],"created_at":"2024-07-31T02:01:16.999Z","updated_at":"2025-04-05T04:14:13.611Z","avatar_url":"https://github.com/postcss-rs.png","language":"Rust","readme":"# postcss-rs\n\n🚀 Fast and 100% API compatible postcss replacer, built in Rust\n\n\u003e ⚠️ DO NOT USE. STILL WORK IN PROGRESS.\n\n## Performance Improvement\n\nRun benchmark:\n\n```bash\ncargo build --release --locked --bin \"benchmark*\"\ncargo run --release --bin benchmark\n```\n\nTokenizer (Compare with Node.js v16.13.0):\n\n```bash\njs:   0.71s user 0.09s system 152% cpu 0.619 total\nrust: 0.03s user 0.01s system  93% cpu 0.039 total\n```\n\n| **file** | tailwind-components.css | bootstrap-reboot.css | bootstrap-grid.css | bootstrap.css | tailwind.css | tailwind-dark.css |\n| -------: | ----------------------: | -------------------: | -----------------: | ------------: | -----------: | ----------------: |\n| **size** |                    2.8K |                 7.4K |                71K |          201K |         3.5M |              5.8M |\n|   **js** |                 1.813ms |              2.380ms |           11.856ms |      33.919ms |    167.309ms |         224.577ms |\n| **rust** |                 0.019ms |              0.037ms |            0.191ms |       0.721ms |      9.624ms |          15.743ms |\n|    **~** |                     95x |                  64x |                61x |           47x |          17x |               14x |\n\nParser (Compare with Node.js v16.13.0):\n\n```bash\njs:   1.45s user 0.16s system 183% cpu 0.881 total\nrust: 0.10s user 0.03s system  97% cpu 0.137 total\n```\n\n| **file** | tailwind-components.css | bootstrap-reboot.css | bootstrap-grid.css | bootstrap.css | tailwind.css | tailwind-dark.css |\n| -------: | ----------------------: | -------------------: | -----------------: | ------------: | -----------: | ----------------: |\n| **size** |                    2.8K |                 7.4K |                71K |          201K |         3.5M |              5.8M |\n|   **js** |                 4.405ms |              4.203ms |           33.344ms |      55.749ms |    356.345ms |         441.832ms |\n| **rust** |                 0.070ms |              0.088ms |            1.016ms |       2.220ms |     45.112ms |          68.663ms |\n|    **~** |                     63x |                  47x |                33x |           25x |           8x |                6x |\n\n🎉 Welcome to contribute, here is a guide:\n\n```bash\ngit checkout main\ncargo bench -- --save-baseline main\n```\n\nCreate a baseline, Then do some optimization work here.\n\n```bash\ngit checkout feature  ## `feature` is your branch\n```\n\nCompare against the `main` baseline.\n\n```bash\ncargo bench -- --baseline main\n```\n\n## License\n\n[postcss-rs](https://github.com/justjavac/postcss-rs) is released under the\nMIT License. See the [LICENSE](./LICENSE) file in the project root directory for details.\n\n## ACKNOWLEDGEMENT\n\n**The project is based on the wonderful work of Andrey Sitnik([@ai](https://github.com/ai)) 's [postcss](https://github.com/postcss/postcss), which is under MIT License(See [HERE](./POSTCSS.LICENSE)), Great thanks to Mr. Sitnik and other contributors' work.**\n","funding_links":[],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostcss-rs%2Fpostcss-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostcss-rs%2Fpostcss-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostcss-rs%2Fpostcss-rs/lists"}