postcss

Crates.iopostcss
lib.rspostcss
version0.0.2
sourcesrc
created_at2021-10-18 07:47:48.135687
updated_at2021-11-08 03:10:12.122257
descriptionπŸš€ Fast and 100% API compatible postcss replacer
homepage
repositoryhttps://github.com/justjavac/postcss-rs
max_upload_size
id466671
size817,883
θΏ·ζΈ‘ (justjavac)

documentation

README

postcss-rs

πŸš€ Fast and 100% API compatible postcss replacer, built in Rust

⚠️ DO NOT USE. STILL WORK IN PROGRESS.

Performance Improvement

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

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.

Commit count: 173

cargo fmt