33 releases

Uses old Rust 2015

0.14.0 Feb 14, 2021
0.13.1 Jul 25, 2020
0.12.0 Dec 2, 2019
0.11.0 Apr 15, 2019
0.0.4 Sep 17, 2016

#116 in GUI

Download history 97/week @ 2021-04-14 7/week @ 2021-04-21 3/week @ 2021-04-28 5/week @ 2021-05-05 37/week @ 2021-05-12 6/week @ 2021-05-19 10/week @ 2021-05-26 6/week @ 2021-06-02 38/week @ 2021-06-09 6/week @ 2021-06-16 4/week @ 2021-06-23 3/week @ 2021-06-30 6/week @ 2021-07-07 205/week @ 2021-07-14 9/week @ 2021-07-21 71/week @ 2021-07-28

154 downloads per month
Used in titanium

MIT license

135KB
2.5K SLoC

= Mg

Minimal UI library based on https://github.com/antoyo/relm[relm] (GTK+), written in Rust.

image:https://img.shields.io/github/workflow/status/antoyo/mg/CI[link="https://github.com/antoyo/mg/actions"] image:https://img.shields.io/crates/v/mg.svg[link="https://crates.io/crates/mg"] image:https://img.shields.io/badge/rust-documentation-blue.svg[link="https://docs.rs/mg/latest/mg/"] image:https://img.shields.io/crates/d/mg.svg[link="https://crates.io/crates/mg"] image:https://img.shields.io/crates/l/mg.svg[link="LICENSE"]

== Installation

Add the following line to the dependencies section of your Cargo.toml:

[source,bash]

mg = "0.0.1" relm = "0.9.6" relm-attributes = "0.9.0" relm-derive = "0.9.2"

== Usage

In the view! macro, use the Mg widget:

[source,rust]

view! { Mg<AppCommand, NoSettings>((MODES, "examples/main.conf", None)) { // Place your main widget here. gtk::Box { } // Connect a signal to react to commands entered by the user. CustomCommand(command) => Command(command), } }

Dependencies

~18MB
~435K SLoC