4 ms·
Taffy is a standalone high-performance UI layout library written in Rust that has been consuming a large part of my free time for the past ~6 months. The Flexb
by nicoburns 4y ago
Taffy is a standalone high-performance UI layout library written in Rust that has been consuming a large part of my free time for the past ~6 months.
The Flexbox implementation has been around from a few years, and was inherited from Taffy's abandoned predecessor library Stretch (which was previously featured on HN [0]) which was itself indirectly derived from Yoga [1] the C++ library which powers React Native.
What's new here is the CSS Grid implementation, which I believe is the first CSS Grid implementation available as an easily embeddable library rather than as part of a web browser. Meaning you can now get both 1D and 2D layout from the same library.
The CSS Grid implementation was written by me. So AMA.
[0]: https://news.ycombinator.com/item?id=19780790 https://news.ycombinator.com/item?id=19780790
[1]: https://github.com/facebook/yoga https://github.com/facebook/yoga