Crates.io | libphosh |
lib.rs | libphosh |
version | 0.0.4 |
source | src |
created_at | 2024-07-02 18:45:36.96364 |
updated_at | 2024-11-14 11:59:05.728532 |
description | Rust bindings for libphosh |
homepage | https://gitlab.gnome.org/guidog/libphosh-rs |
repository | https://gitlab.gnome.org/guidog/libphosh-rs.git |
max_upload_size | |
id | 1289811 |
size | 161,103 |
The Rust bindings of phosh
You will need the following installed:
xmlstarlet
If the upstream libphosh introspection Phosh-0.gir
XML has changed, then run the following:
make Phosh-0.gir
The main
branch of Phosh will be fetched as a Meson subproject, the introspection XML will be regenerated, and the result will be copied to ./Phosh-0.gir
. You should commit the changes to this repo.
If you've updated the introspection XML, or made changes to the Gir.toml
files, then run:
make
Note that you should not commit the changes that were made to NM-1.0.gir
or Phosh-0.gir
.
There's two examples demoing the libphosh-rs usage:
WLR_BACKENDS=wayland phoc -E target/debug/examples/hello-world
WLR_BACKENDS=wayland phoc -E target/debug/examples/custom-shell-and-lockscreen
API documentation is at https://guidog.pages.gitlab.gnome.org/libphosh-rs/git/docs/