Crates.io | postcss |
lib.rs | postcss |
version | 0.0.2 |
source | src |
created_at | 2021-10-18 07:47:48.135687 |
updated_at | 2021-11-08 03:10:12.122257 |
description | π Fast and 100% API compatible postcss replacer |
homepage | |
repository | https://github.com/justjavac/postcss-rs |
max_upload_size | |
id | 466671 |
size | 817,883 |
π Fast and 100% API compatible postcss replacer, built in Rust
β οΈ DO NOT USE. STILL WORK IN PROGRESS.
Tokenize bootstrap.css (Compare with Node.js v16.13.0):
js: 0.11s user 0.02s system 126% cpu 0.102 total
rust: 0.00s user 0.00s system 66% cpu 0.006 total
# tokenize bootstrap-reboot.css ~45x
js: tokenizer/small(7K) 3.063ms
rust: tokenizer/small(7K) 0.068ms
# tokenize bootstrap.css ~26x
js: tokenizer/fairly_large(201K) 25.672ms
rust: tokenizer/fairly_large(201K) 0.979ms
π Welcome contribute, here is a guide:
git checkout main
cargo bench -- --save-baseline main
Create a baseline, Then do some optimization work here.
git checkout feature ## `feature` is your branch
Compare against the main
baseline.
cargo bench -- --baseline main
postcss-rs is released under the MIT License. See the LICENSE file in the project root directory for details.
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.