#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

#1065 in GUI

Download history 16/week @ 2024-02-19 14/week @ 2024-02-26 9/week @ 2024-03-04 14/week @ 2024-03-11 14/week @ 2024-03-18

52 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.6–1.5MB
~31K SLoC