8 unstable releases (3 breaking)

0.4.1 Aug 1, 2023
0.4.0 Jul 24, 2023
0.3.0 Feb 10, 2023
0.2.0 Oct 19, 2022
0.1.0-alpha.4 Jan 20, 2022

#668 in GUI

Download history 322/week @ 2023-08-14 177/week @ 2023-08-21 364/week @ 2023-08-28 290/week @ 2023-09-04 449/week @ 2023-09-11 498/week @ 2023-09-18 436/week @ 2023-09-25 532/week @ 2023-10-02 509/week @ 2023-10-09 511/week @ 2023-10-16 483/week @ 2023-10-23 569/week @ 2023-10-30 624/week @ 2023-11-06 524/week @ 2023-11-13 608/week @ 2023-11-20 584/week @ 2023-11-27

2,448 downloads per month

MIT license

350KB
9K SLoC

libshumate-rs

The Rust bindings of libshumate

Website: https://world.pages.gitlab.gnome.org/Rust/libshumate-rs

Documentation


lib.rs:

Rust Shumate bindings

This library contains safe Rust bindings for Shumate, a library that offers building blocks for modern GNOME applications.

See also

Example

The libshumate crate is usually renamed to shumate. You can do this globally in your Cargo.toml file:

[dependencies.shumate]
package = "libshumate"
version = "0.x.y"
use shumate::prelude::*;

use shumate::{Map};
use gtk::{Application, Box, ListBox, Orientation, ApplicationWindow};

fn main() {
    let application = Application::builder()
        .application_id("com.example.FirstShumateApp")
        .build();

    application.connect_activate(|app| {
        let content = Map::new();

        let window = ApplicationWindow::builder()
            .application(app)
            .default_width(350)
            // add content to window
            .child(&content)
            .build();
        window.show();
    });

    application.run();
}

Dependencies

~18MB
~415K SLoC