Registry / other / taffy
library0.11.0rscratesunverified

A flexible UI layout library.

# Cargo.toml [dependencies] taffy = "0.11.0"
INSTALL
IMPORT
SIG · TAFFY
T
taffy
otherrustv0.11.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Taffy
use taffy::Taffy;

Create a layout tree and compute layout.

use taffy::{Taffy, Style, Dimension}; fn main() { let mut taffy = Taffy::new(); let child = taffy.new_leaf(Style { size: Dimension::Points(100.0), ..Default::default() }).unwrap(); let root = taffy.new_with_children(Style::default(), &[child]).unwrap(); taffy.compute_layout(root, taffy::geometry::Size::MAX_CONTENT).unwrap(); println!("Layout computed"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.11.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
taffy — cargo add taffy · libregistry