$ cssparser

v0.37.0

Rust implementation of CSS Syntax Level 3

Downloads: 38.3M
Recent: 8.8M
Versions: 109
Updated: March 17, 2026

Latest Update Summary

Crate

Name: cssparser New version: 0.36.0 Release date: 2025-11-10T06:01:09.857100Z

Crate readme

Short description Rust implementation of CSS Syntax Module Level 3

Long description rust-cssparser provides a way to parse CSS, including steps such as detecting character encoding, tokenization, and transforming tokens into component values. It does not handle the final full CSS parsing step, which varies based on user requirements. It offers helper functions for parsing CSS colors and nth-child selectors.

Features • Tokenization that transforms Unicode text into a stream of tokens • Parsing component values into generic rules or declarations • Support for parsing CSS colors • Helper functions for nth-child selectors

Code Examples

Linkshttps://docs.rs/cssparserhttps://github.com/servo/stylo/tree/main/stylehttps://drafts.csswg.org/css-syntax/

https://docs.rs/cssparser/ https://api.github.com/repos/servo/rust-cssparser/releases/207255183

Release info

Release version:

Release description

Code Examples

Minor update: 0.36.0 → 0.37.0

$ DOWNLOADS TREND

24.9M38.3M

$ VERSION HISTORY

v0.37.0March 17, 2026
v0.36.0November 10, 2025
v0.35.0March 20, 2025

$ LINKS

$ INSTALL

cargo add cssparser

Or add to Cargo.toml: cssparser = "0.37.0"