Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

postcss-rs

> 前端框架
Open source

Fast and 100% API compatible postcss replacer, built in Rust

563 stars0 likes2 views
WebsiteGitHub

About

Fast and 100% API compatible postcss replacer, built in Rust

postcss-rs

Fast and 100% API compatible postcss replacer, built in Rust

⚠️ DO NOT USE. STILL WORK IN PROGRESS.

Performance Improvement

Run benchmark:

bash
cargo build --release --locked --bin "benchmark*"
cargo run --release --bin benchmark

Tokenizer (Compare with Node.js v16.13.0):

bash
js:   0.71s user 0.09s system 152% cpu 0.619 total
rust: 0.03s user 0.01s system  93% cpu 0.039 total
file tailwind-components.css bootstrap-reboot.css bootstrap-grid.css bootstrap.css tailwind.css tailwind-dark.css
size 2.8K 7.4K 71K 201K 3.5M 5.8M
js 1.813ms 2.380ms 11.856ms 33.919ms 167.309ms 224.577ms
rust 0.019ms 0.037ms 0.191ms 0.721ms 9.624ms 15.743ms
~ 95x 64x 61x 47x 17x 14x

Parser (Compare with Node.js v16.13.0):

bash
js:   1.45s user 0.16s system 183% cpu 0.881 total
rust: 0.10s user 0.03s system  97% cpu 0.137 total
file tailwind-components.css bootstrap-reboot.css bootstrap-grid.css bootstrap.css tailwind.css tailwind-dark.css
size 2.8K 7.4K 71K 201K 3.5M 5.8M
js 4.405ms 4.203ms 33.344ms 55.749ms 356.345ms 441.832ms
rust 0.070ms 0.088ms 1.016ms 2.220ms 45.112ms 68.663ms
~ 63x 47x 33x 25x 8x 6x

Welcome to contribute, here is a guide:

bash
git checkout main
cargo bench -- --save-baseline main

Create a baseline, Then do some optimization work here.

bash
git checkout feature  ## `feature` is your branch

Compare against the main baseline.

bash
cargo bench -- --baseline main

License

postcss-rs is released under the MIT License. See the LICENSE file in the project root directory for details.

ACKNOWLEDGEMENT

The project is based on the wonderful work of Andrey Sitnik(@ai) 's postcss, which is under MIT License(See HERE), Great thanks to Mr. Sitnik and other contributors' work.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustastcsspostcssrust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架