Clay Rust Bindings
Rust bindings for Clay, a UI layout library written in C.
Usage
# Cargo.toml
[]
= "0.4"
Example usage:
use ;
Examples
Examples can be found in the examples/ directory. They can be ran using cargo:
Build bindings
Notice that building the bindings is only required if you update the clay.h
To build bindings you need to use the generate_bindings script.
It needs bindgen installed as a CLI, you can install it with cargo install bindgen.
Calling it will use the clay.h in the project root, or any clay.h file provided with CLAY_HEADER_PATH.
Using the clay header it will generate src/bindings/bindings.rs and src/bindings/bindings_debug.rs.