#style #css #layout #ui #css-parser #gui-framework

alchemy-styles

Style parsing and hoisting for Alchemy, the Rust cross-platform GUI framework

1 unstable release

0.1.0 Jun 6, 2019

#1133 in GUI

32 downloads per month
Used in 4 crates

MPL-2.0+

185KB
4K SLoC

Alchemy-Styles

This crate implements CSS parsing and Flexbox layout. CSS parsing relies on the CSS Parser from Servo. Flexbox is implemented with Stretch, albeit currently a fork by msilgreith, cloned into here to serve a few small changes (a change for more thread safety, and to push appearance based styles that Flexbox doesn't concern itself with). Down the road, I could see this not including Stretch inline.

Questions, Comments?

Open an issue, or hit me up on Twitter.


lib.rs:

This crate hoists various styles and layout parameters for implementing Flexbox in Alchemy. For all intents and purposes, you can essentially consider this to be the root crate for Alchemy, as just about everything ends up using it.

Dependencies

~0.5–1.5MB
~30K SLoC