{"id":13439644,"url":"https://github.com/gtk-rs/gtk","last_synced_at":"2025-09-27T08:30:34.600Z","repository":{"id":29714301,"uuid":"33257338","full_name":"gtk-rs/gtk","owner":"gtk-rs","description":"DEPRECATED, use https://github.com/gtk-rs/gtk3-rs repository instead!","archived":true,"fork":false,"pushed_at":"2020-10-17T12:00:28.000Z","size":11897,"stargazers_count":1251,"open_issues_count":3,"forks_count":82,"subscribers_count":33,"default_branch":"master","last_synced_at":"2024-04-14T05:17:25.871Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://gtk-rs.org/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gtk-rs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"open_collective":"gtk-rs"}},"created_at":"2015-04-01T15:57:09.000Z","updated_at":"2024-04-09T21:54:52.000Z","dependencies_parsed_at":"2022-08-18T15:21:28.295Z","dependency_job_id":null,"html_url":"https://github.com/gtk-rs/gtk","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gtk-rs%2Fgtk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gtk-rs%2Fgtk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gtk-rs%2Fgtk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gtk-rs%2Fgtk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gtk-rs","download_url":"https://codeload.github.com/gtk-rs/gtk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234410508,"owners_count":18828223,"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-07-31T03:01:15.893Z","updated_at":"2025-09-27T08:30:28.531Z","avatar_url":"https://github.com/gtk-rs.png","language":"Rust","funding_links":["https://opencollective.com/gtk-rs"],"categories":["Libraries","库","Rust","库 Libraries"],"sub_categories":["GUI","图形用户界面 GUI"],"readme":"# gtk [![Build Status](https://travis-ci.org/gtk-rs/gtk.png?branch=master)](https://travis-ci.org/gtk-rs/gtk) [![Build status](https://ci.appveyor.com/api/projects/status/5mot32ipr12iocw0?svg=true)](https://ci.appveyor.com/project/GuillaumeGomez/gtk) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/gtk-rs/gtk)\n\n[Project site](http://gtk-rs.org/) | [Online documentation](https://gtk-rs.org/docs-src/)\n\n__Rust__ bindings and wrappers for __GLib__, __GDK 3__, __GTK+ 3__  and __Cairo__.\n\n## Building\n\n__gtk__ expects __GTK+__, __GLib__ and __Cairo__ development files to be installed on your system.\nSee the [GTK installation page](https://www.gtk.org/docs/installations/).\n\n## Using\n\nWe recommend using [crates from crates.io](https://crates.io/keywords/gtk-rs),\nas [demonstrated here](http://gtk-rs.org/#using).\n\nIf you want to track the bleeding edge, use the git dependency instead:\n\n```toml\n[dependencies]\ngtk = { git = \"https://github.com/gtk-rs/gtk.git\" }\n```\n\nAvoid mixing versioned and git crates like this:\n\n```toml\n# This will not compile\n[dependencies]\ngdk = \"0.2\"\ngtk = { git = \"https://github.com/gtk-rs/gtk.git\" }\n```\n\n## Documentation\n\nThe majority of the documentation is kept [in a separate repo][gtk-md] due to\nlicensing issues. You can pull it in with cargo:\n\n```shell\n\u003e cargo build --features embed-lgpl-docs\n```\n\nChanges to those doc-comments should be submitted to the `lgpl-docs` repo. Avoid\nincluding those embedded doc-comments in PRs to this repo.\n\nThe opposite feature removes all of those docs regardless of edits:\n\n```shell\n\u003e cargo build --features purge-lgpl-docs\n```\n\nThese features **rewrite the crate sources** so it's sufficient to enable them\nonce. **Omitting them in the following `cargo` invocations will not undo their\neffects!**\n\nGenerate the docs:\n\n```shell\n\u003e cargo doc --features v3_16\n```\n\n(if the installed GTK+ version is lower than 3.16, adjust the feature name accordingly).\n\n[gtk-md]: https://github.com/gtk-rs/lgpl-docs/blob/master/README.md\n\n## Contribute\n\nContributor you're welcome!\n\nSee the general [bindings documentation](http://gtk-rs.org/docs/glib/).\n\nMost of the bindings ([`src/auto`](src/auto)) are generated by [gir](https://github.com/gtk-rs/gir) using [this configuration file](Gir.toml). After editing `Gir.toml` the sources can be regenerated with\n\n```shell\n\u003e make gir\n```\n\nWhen opening a PR please put the changes to the `src/auto` directory in a separate commit.\n\nYou may also wish to run `cargo clippy -- -D warnings` and check that you're clean because\notherwise you may be surprised when CI fails.\n\n## License\n\n__gtk__ is available under the MIT License, please refer to it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgtk-rs%2Fgtk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgtk-rs%2Fgtk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgtk-rs%2Fgtk/lists"}