gtk-layer-shell-sys 0.2.5

Unsave gir-generated FFI bindings for gtk-layer-shell
docs.rs failed to build gtk-layer-shell-sys-0.2.5
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: gtk-layer-shell-sys-0.7.0

Crate dependency status Build_x86 Build_aarch64

gtk-layer-shell-sys

These are the unsafe FFI bindings for gtk-layer-shell. They were automatically generated from its .gir file.

Usage

These are the unsafe bindings. You most likely want to use the safe wrapper.

Generating the bindings

Generating the bindings yourself is not necessary to be able to use it. If you want to do it anyways, here are the steps you can follow to generate the bindings yourself.

You need to have Rust, and Gtk3 installed. Clone the repository AND the submodule "gir".

git clone --recurse-submodules -j8 https://github.com/pentamassiv/gtk-layer-shell-gir.git
cd ./gtk-layer-shell-gir

Then you need to install gir.

cd gir
cargo install --path .
cd ..

If you regenerate the binding, because you have a new version of the GtkLayerShell gir file, copy it into the gir files folder. Now you can generate, build and test the bindings.

cd gtk-layer-shell/gtk-layer-shell-sys
gir -o .        # Regenerate the bindings
cargo build     # Build the created bindings
cargo test      # Test the created bindings
cd ..

There should not have been any errors. You should now continue and generate the safe wrapper. If you want to learn more about gir, have a look at its repo or its book.

Contributing

Pull requests are very welcome :)

License

MIT