#css #ui #class #style #css-parser #library

sunbeam-ir

Sunbeams intermediary types used to parse and generate CSS

22 releases

0.0.22-alpha Jun 22, 2023
0.0.21-alpha Mar 4, 2023
0.0.20-alpha Feb 3, 2023
0.0.17-alpha Dec 16, 2022
0.0.2-alpha Mar 21, 2022

#220 in Procedural macros

Download history 4/week @ 2024-02-19 16/week @ 2024-02-26 8/week @ 2024-03-04 6/week @ 2024-03-11 6/week @ 2024-03-18 154/week @ 2024-03-25

174 downloads per month
Used in 4 crates (2 directly)

MIT/Apache

83KB
2.5K SLoC

An intermediate representation of a css!(...) invocation.

css!(...) macro calls get parsed into this IR.

This IR is then used when validating and generating CSS files. Keeping this here makes it easy to run all of the crate's tests from within the IDE. You can call run tests in your IDE from the lib.rs file (as long as your cursor is outside of this test module), which will then run all of the tests in the crate (since every module is a descendent of lib.rs.)

Dependencies

~1.8–2.6MB
~54K SLoC