5ebe1a4a63
This update contains an API breakage in the form of changing the parent types of a few classes. Because the new parent only exists in 0.0.10, the bindings can only compile for 0.0.10. Thus, the version bump signifies that users must use versions before 0.4.0 in order to target older versions of libhandy. |
||
---|---|---|
gir@20feecf4fe | ||
gir-files@617a344b41 | ||
libhandy | ||
libhandy-sys | ||
.gitignore | ||
.gitmodules | ||
Cargo.toml | ||
Handy-0.0.gir | ||
LICENSE | ||
README.md | ||
regen.sh |
libhandy-rs
This repository contains the WIP rust bindings for libhandy.
Using
Add this line to your Cargo file
[dependencies]
libhandy = { git = "https://gitlab.gnome.org/World/Rust/libhandy-rs" }
Build
We use gir to generate rust libhandy bindings. The bindings are split in two parts, sys and api.
git clone --recurse https://gitlab.gnome.org/World/Rust/libhandy-rs.git
cd libhandy-rs/gir
cp ../Handy-0.0.gir ../gir-files
cargo run --release -- -c ../libhandy-sys/gir-libhandy.toml -d ../gir-files -m sys -o ../libhandy-sys
cargo run --release -- -c ../libhandy/Gir.toml -d ../gir-files -o ../libhandy