{"id":18082829,"url":"https://github.com/ranfdev/gnome-rs-template","last_synced_at":"2025-04-05T23:13:28.619Z","repository":{"id":183254326,"uuid":"669836576","full_name":"ranfdev/gnome-rs-template","owner":"ranfdev","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-23T16:16:31.000Z","size":449,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-12T05:14:51.799Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ranfdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-23T15:33:29.000Z","updated_at":"2023-07-23T15:44:10.000Z","dependencies_parsed_at":"2023-09-04T01:17:18.600Z","dependency_job_id":null,"html_url":"https://github.com/ranfdev/gnome-rs-template","commit_stats":null,"previous_names":["ranfdev/gtk-rs-template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranfdev%2Fgnome-rs-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranfdev%2Fgnome-rs-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranfdev%2Fgnome-rs-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranfdev%2Fgnome-rs-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ranfdev","download_url":"https://codeload.github.com/ranfdev/gnome-rs-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411243,"owners_count":20934654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-31T14:06:10.841Z","updated_at":"2025-04-05T23:13:28.594Z","avatar_url":"https://github.com/ranfdev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GTK + Libadwaita + Blueprint + Rust + Meson + Flatpak = \u003c3\n\nA boilerplate template to get started with GTK, Libadwaita, Blueprint, Rust, Meson, Flatpak made for GNOME.\n\n![Main window](data/resources/screenshots/screenshot1.png \"Main window\")\n\n## What does it contains?\n\n- A simple window with a headerbar\n- Bunch of useful files that you SHOULD ship with your application on Linux:\n  - Metainfo: describe your application for the different application stores out there;\n  - Desktop: the application launcher;\n  - Icons: This repo contains three icons, a normal, a nightly \u0026 monochromatic icon (symbolic) per the GNOME HIG, exported using [App Icon Preview](https://flathub.org/apps/details/org.gnome.design.AppIconPreview).\n- Flatpak Manifest for nightly builds\n- Dual installation support\n- Uses Meson for building the application\n- Bundles the UI files \u0026 the CSS using gresources\n- A pre-commit hook to run rustfmt on your code\n- Tests to validate your Metainfo, Schemas \u0026 Desktop files\n- Gsettings to store the window state, more settings could be added\n- Gitlab CI to produce flatpak nightlies\n- i18n support\n\n## How to init a project ?\n\nThe template ships a simple python script to init a project easily. It asks you a few questions and replaces \u0026 renames all the necessary files.\n\nThe script requires having `git` installed on your system.\n\nYou can run it with,\n\n```shell\npython3 create-project.py\n```\n\n```shell\n➜ python3 create-project.py\nWelcome to GTK Rust Template\nName: Contrast\nProject Name: contrast\nApplication ID (e.g. org.domain.MyAwesomeApp, see: https://developer.gnome.org/ChooseApplicationID/): org.gnome.design.Contrast\nAuthor: Bilal Elmoussaoui\nEmail: bil.elmoussaoui@gmail.com\n```\n\nA new directory named `contrast` containing the generated project\n\n## Building the project\n\nMake sure you have `flatpak` and `flatpak-builder` installed. Then run the commands below. Replace `\u003capplication_id\u003e` with the value you entered during project creation. Please note that these commands are just for demonstration purposes. Normally this would be handled by your IDE, such as GNOME Builder or VS Code with the Flatpak extension.\n\n```\nflatpak install --user org.gnome.Sdk//master org.freedesktop.Sdk.Extension.rust-stable org.gnome.Platform//master org.freedesktop.Sdk.Extension.llvm16\nflatpak-builder --user flatpak_app build-aux/\u003capplication_id\u003e.Devel.json\n```\n\n## Running the project\n\nOnce the project is build, run the command below. Replace Replace `\u003capplication_id\u003e` and `\u003cproject_name\u003e` with the values you entered during project creation. Please note that these commands are just for demonstration purposes. Normally this would be handled by your IDE, such as GNOME Builder or VS Code with the Flatpak extension.\n\n```\nflatpak-builder --run flatpak_app build-aux/\u003capplication_id\u003e.Devel.json \u003cproject_name\u003e\n```\n\n## Community\n\nJoin the GNOME and gtk-rs community!\n- [Matrix chat](https://matrix.to/#/#rust:gnome.org): chat with other developers using gtk-rs\n- [Discourse forum](https://discourse.gnome.org/tag/rust): topics tagged with `rust` on the GNOME forum.\n- [GNOME circle](https://circle.gnome.org/): take inspiration from applications and libraries already extending the GNOME ecosystem.\n\n## Credits\n\n- [Podcasts](https://gitlab.gnome.org/World/podcasts)\n- [Shortwave](https://gitlab.gnome.org/World/Shortwave)\n- [gtk-rust-template without libadwaita and blueprint](https://gitlab.gnome.org/World/Rust/gtk-rust-template)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franfdev%2Fgnome-rs-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Franfdev%2Fgnome-rs-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franfdev%2Fgnome-rs-template/lists"}