1fn main() {
2 let node = stretch::style::Node {
3 width: stretch::style::Dimension::Points(100.0),
4 height: stretch::style::Dimension::Points(100.0),
5 justify_content: stretch::style::JustifyContent::Center,
6
7 children: vec![stretch::style::Node { width: stretch::style::Dimension::Percent(0.5), ..Default::default() }],
8
9 ..Default::default()
10 };
11
12 let layout = stretch::compute(&node);
13
14 println!("{:#?}", layout);
15}