#ast #parser #css-parser #css

macro csskit_derives

Derive macros for CSS parsing, visiting, and AST operations

263 releases

Uses new Rust 2024

new 0.0.14-canary.fac2d44a37 Jan 4, 2026
0.0.14-canary.b91df5b9a8 Jan 3, 2026
0.0.11-canary.efc7e551f1 Dec 29, 2025
0.0.7-canary.f08affa44d Oct 27, 2025
0.0.2-canary… Jul 31, 2025

#2978 in Procedural macros

Download history 3001/week @ 2025-09-15 708/week @ 2025-09-22 2737/week @ 2025-09-29 746/week @ 2025-10-06 2974/week @ 2025-10-13 2558/week @ 2025-10-20 433/week @ 2025-10-27 10/week @ 2025-11-03 3/week @ 2025-11-17 5/week @ 2025-11-24 9/week @ 2025-12-01 46/week @ 2025-12-08 67/week @ 2025-12-15 48/week @ 2025-12-22 40/week @ 2025-12-29

204 downloads per month
Used in 7 crates (3 directly)

MIT license

78KB
2.5K SLoC

csskit_derives

Derive macros for CSS parsing, visiting, and AST operations.

📖 Full Documentation

Features

  • Parse: Automatically implement parsing logic for AST nodes
  • Peek: Generate lookahead/peeking functionality
  • ToCursors: Convert AST nodes to token cursors
  • ToSpan: Generate span/source location tracking
  • Visitable: Implement visitor pattern for AST traversal

Part of csskit

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

For more information, visit csskit.rs.

License

MIT

Dependencies

~0.6–1MB
~22K SLoC