9 unstable releases (4 breaking)

0.5.0 Feb 4, 2024
0.4.1 Aug 1, 2023
0.4.0 Jul 24, 2023
0.3.0 Feb 10, 2023
0.1.0-alpha.4 Jan 20, 2022

#867 in GUI

Download history 432/week @ 2023-12-23 378/week @ 2023-12-30 485/week @ 2024-01-06 384/week @ 2024-01-13 584/week @ 2024-01-20 527/week @ 2024-01-27 350/week @ 2024-02-03 493/week @ 2024-02-10 389/week @ 2024-02-17 370/week @ 2024-02-24 379/week @ 2024-03-02 340/week @ 2024-03-09 379/week @ 2024-03-16 620/week @ 2024-03-23 533/week @ 2024-03-30 309/week @ 2024-04-06

1,881 downloads per month

MIT license

385KB
10K 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 a GTK4 widget to display maps.

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

~16–26MB
~446K SLoC