10 releases (5 breaking)

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

#597 in GUI

Download history 353/week @ 2024-08-13 239/week @ 2024-08-20 269/week @ 2024-08-27 436/week @ 2024-09-03 271/week @ 2024-09-10 375/week @ 2024-09-17 766/week @ 2024-09-24 639/week @ 2024-10-01 584/week @ 2024-10-08 567/week @ 2024-10-15 255/week @ 2024-10-22 524/week @ 2024-10-29 433/week @ 2024-11-05 173/week @ 2024-11-12 286/week @ 2024-11-19 184/week @ 2024-11-26

1,145 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

~15–23MB
~437K SLoC