css_lexer
A spec-compliant CSS tokenizer with zero-copy cursors and optional feature gates.
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- EnablesFrom<>implementations for miette span typesbump- EnablesFrom<>implementations for bump Vecserde- 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