#safe #layout #root #mut #taitank

taitank-safe

taitank in safe rust

8 releases

0.1.0 Feb 16, 2025
0.0.6 Nov 16, 2024

#9 in #mut

50 downloads per month

MIT license

135KB
3K SLoC

C++ 2.5K SLoC // 0.2% comments Rust 217 SLoC

Taitank Safe

License Package version Workflow

Rust binding of tencent/taitank provides safe binding to the layout library.

Usage

[dependencies]
taitank_safe = "0.1.0"
use taitank_safe::*;

let mut root = node_create();

set_width(&mut root, 100.0);
set_height(&mut root, 100.0);

layout!(&mut root);

Development

$ git clone git@github.com:rustq/taitank-safe.git
$ cd taitank-safe
$ cargo run --example demo

License

MIT

Dependencies

~0.5–2MB
~32K SLoC