Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History

README.md

Crates

This directory contains all the Rust crates that make up the csskit project. Each crate serves a specific purpose in the CSS parsing, AST generation, and tooling ecosystem. The modular architecture allows for flexible usage - components can be used independently or as part of the complete csskit toolchain.

Architecture Overview

The crates follow a layered architecture:

  1. Lexing Layer: css_lexer - Tokenization of CSS source
  2. Parsing Layer: css_parse - Grammar-based parsing into ASTs
  3. AST Layer: css_ast - Type-safe representation of CSS constructs
  4. Tool Layer: Various specialized tools and integrations
  5. Application Layer: csskit - CLI and high-level APIs

Core Library Crates

  • csskit - Main CLI application and entry point (docs)
  • css_lexer - CSS/CSS-alike tokenizer/lexer for breaking CSS into tokens (docs)
  • css_parse - CSS/CSS-alike parser that builds on the lexer to create parse trees (docs)
  • css_ast - Abstract Syntax Tree definitions for the CSS language (docs)

Tool & Extension Crates

Support & Utility Crates