#gtk #api-bindings

dbusmenu-glib

Rust bindings to dbusmenu-glib

1 unstable release

0.1.0 Apr 5, 2023

#738 in GUI

Download history 75/week @ 2024-03-14 88/week @ 2024-03-21 873/week @ 2024-03-28 949/week @ 2024-04-04 787/week @ 2024-04-11 800/week @ 2024-04-18 1074/week @ 2024-04-25 1497/week @ 2024-05-02 2310/week @ 2024-05-09 1762/week @ 2024-05-16 1613/week @ 2024-05-23 1675/week @ 2024-05-30 1721/week @ 2024-06-06 1736/week @ 2024-06-13 1663/week @ 2024-06-20 1409/week @ 2024-06-27

6,772 downloads per month
Used in dbusmenu-gtk3

LGPL-3.0-only

91KB
1K SLoC

dbusmenu-rs

This repository contains safe Rust bindings for libdbusmenu that work with the gtk-rs ecosystem. For more information, including examples, see the libdbusmenu repo.

Code Generation

Bindings are generated using gir.

In order to manage all the steps and fixes involved in code generation, they are built using Nix and symlinked to result. To generate them yourself, run nix build.

License

This project licensed under LGPLv3.


lib.rs:

bindings for glib part of libdbusmenu

Rust bindings for the glib part of libdbusmenu that work with the gtk-rs ecosystem.

By using Server, you can use this crate in desktop applications to expose a menu over DBus. For more information, including code examples, see libdbusmenu.

This crate also provides a UI-framework-independent interface to read them by using Client. However, if you are using GTK, it is recommended that you use dbusmenu-gtk3, which handles most of the GTK glue required to show it.

Dependencies

~5.5MB
~120K SLoC