Yoga-rs
A Rust wrapper for Facebook's Yoga layout library.
You may also want to check out stretch as it is a pure Rust implementation.
Dependencies
- cargo
- rustc
Build
$ cargo build --release
Run Example
$ cargo run --release --example layout
Example Code
extern crate yoga;
use *;
use Node;
use ;
Testing
The unit tests are automatically generated based on upstream fixtures and should not be edited manually.
$ cargo test
To generate the test cases:
Download the ChromeDriver binary and put it somewhere in your $PATH
. Linux/MacOS example:
$ cp chromedriver /usr/local/bin
Install the required Ruby gem.
$ sudo gem install watir
Generate the tests.
$ ruby gentest/gentest.rb