{"id":57985,"library":"gtk4","title":"gtk4","description":"Rust bindings of the GTK 4 library for building graphical user interfaces.","status":"active","version":"0.11.2","language":"rust","source_language":null,"source_url":"https://github.com/gtk-rs/gtk4-rs","tags":["gui","gtk4","ui","desktop"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ngtk4 = \"0.11.2\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add gtk4","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Application","correct":"use gtk4::Application;"}],"quickstart":{"code":"use gtk4::prelude::*;\nuse gtk4::{Application, ApplicationWindow};\n\nfn main() {\n    let app = Application::builder()\n        .application_id(\"com.example\")\n        .build();\n    app.connect_activate(|app| {\n        let window = ApplicationWindow::builder()\n            .application(app)\n            .title(\"Hello GTK4\")\n            .default_width(300)\n            .default_height(200)\n            .build();\n        window.show();\n    });\n    app.run();\n}","lang":"rust","description":"Creates a simple GTK4 application window."},"warnings":[{"fix":"Install GTK4 development package via your system package manager.","message":"Requires GTK4 development libraries installed on the system (e.g., `libgtk-4-dev` on Debian).","severity":"gotcha","affected_versions":">=0.4.0"}],"env_vars":null,"search_vec":"'4':7 'bind':3 'build':10 'desktop':17 'graphic':11 'gtk':6 'gtk4':1,15 'gui':14 'interfac':13 'librari':8 'rust':2 'ui':16 'user':12","created_at":"2026-06-16T16:07:07.849629+00:00","updated_at":"2026-06-16T16:07:07.849629+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://gtk-rs.org/gtk4-rs","github":"https://github.com/gtk-rs/gtk4-rs","docs":"https://docs.rs/gtk4/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}