temporary downstream for libhandy-rs
Go to file
2018-06-07 12:23:44 +02:00
src generate all functions 2018-06-07 12:23:44 +02:00
Cargo.toml Update Cargo.toml 2018-06-07 11:12:12 +02:00
Gir.toml generate all functions 2018-06-07 12:23:44 +02:00
README.md Add readme 2018-06-07 00:46:49 +02:00

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/jsparber/libhandy-rs" }

Build

We use gir to generate rust libhandy bindings. The bindings are split in two parts, sys and api.

git clone https://github.com/gtk-rs/gir.git
cd gir
git clone https://github.com/gtk-rs/gir-files
git clone https://gitlab.gnome.org/jsparber/libhandy-sys-rs.git
cp libhandy-sys-rs/Gspell-1.0.gir gir-files
cp libhandy-sys-rs/gir-libhandy.toml ./
cargo run --release -- -c gir-libhandy.toml -d gir-files -m sys -o libhandy-sys
git clone https://gitlab.gnome.org/jsparber/libhandy-rs.git
cp libhandy-rs/Gir.toml ./
cargo run --release -- -c Gir.toml -d gir-files -o libhandy
cp libhandy-rs/src/lib.rs libhandy-rs/src/manual.rs libhandy-rs/src/rt.rs libhandy/src/
cp libhandy-rs/Cargo.toml libhandy