#css-parser #css #parser

macro derive_atom_set

Derive macro for generating atom sets for efficient keyword matching

105 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.4-canary… Sep 30, 2025

#2989 in Procedural macros

Download history 1468/week @ 2025-09-25 574/week @ 2025-10-02 1856/week @ 2025-10-09 2611/week @ 2025-10-16 1993/week @ 2025-10-23 44/week @ 2025-10-30 16/week @ 2025-11-06 16/week @ 2025-11-13 19/week @ 2025-11-20 21/week @ 2025-11-27 62/week @ 2025-12-04 51/week @ 2025-12-11 115/week @ 2025-12-18 45/week @ 2025-12-25 81/week @ 2026-01-01

293 downloads per month
Used in 11 crates (4 directly)

MIT license

14KB
297 lines

derive_atom_set

Derive macro for generating atom sets for efficient keyword matching.

📖 Full Documentation

Features

  • Efficient keyword matching: Fast lookup for CSS keywords
  • Compile-time generation: Atom sets generated at compile time

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