Rust binding of tencent/taitank provides safe binding to the layout library.
[dependencies]
taitank_safe = "0.0.6"
use taitank_safe::*;
let mut root = node_create();
set_width(&mut root, 100.0);
set_height(&mut root, 100.0);
layout!(&mut root);
$ git clone [email protected]:rustq/taitank-safe.git
$ cd taitank-safe
$ cargo run --example demo