css_lexer

Crates.iocss_lexer
lib.rscss_lexer
version0.0.15-canary.9f676bde6e
created_at2025-07-31 10:57:05.006413+00
updated_at2026-01-26 00:56:56.743351+00
descriptionA spec-compliant CSS tokenizer with zero-copy cursors and optional feature gates.
homepagehttps://csskit.rs
repositoryhttps://github.com/csskit/csskit
max_upload_size
id1774907
size262,626
Keith Cirkel (keithamus)

documentation

README

css_lexer

A spec-compliant CSS tokenizer with zero-copy cursors and optional feature gates.

📖 Full Documentation

Features

  • Spec-compliant: Fully implements CSS Syntax Module Level 3 tokenization rules
  • Zero-copy cursors: Efficient token streaming with minimal allocations
  • Atom-set aware: Optimized lexing for CSS keywords and identifiers
  • Allocation control: Support for custom allocators via allocator_api2 integration

Optional Features

  • miette - Enables From<> implementations for miette span types
  • bump - Enables From<> implementations for bump Vec
  • serde - Enables serialization/deserialization support

Part of csskit

This crate is part of the csskit project, a comprehensive CSS toolchain.

For more information, visit csskit.rs.

License

MIT

Commit count: 1011

cargo fmt