1 unstable release

0.1.0 Apr 5, 2023

#545 in GUI

Download history 49/week @ 2023-12-07 52/week @ 2023-12-14 48/week @ 2023-12-21 52/week @ 2023-12-28 78/week @ 2024-01-04 59/week @ 2024-01-11 69/week @ 2024-01-18 63/week @ 2024-01-25 58/week @ 2024-02-01 68/week @ 2024-02-08 78/week @ 2024-02-15 81/week @ 2024-02-22 67/week @ 2024-02-29 71/week @ 2024-03-07 78/week @ 2024-03-14 77/week @ 2024-03-21

299 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

~6MB
~122K SLoC