# gtk4 **Repository Path**: heiwuqi/gtk4 ## Basic Information - **Project Name**: gtk4 - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-23 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # gtk4 [![Build Status](https://travis-ci.org/gtk-rs/gtk4.png?branch=master)](https://travis-ci.org/gtk-rs/gtk4) [Project site](http://gtk-rs.org/) | [Online documentation](http://gtk-rs.org/docs/) __Rust__ bindings and wrappers for __GTK 4__. ## Building __gtk4__ expects __GTK 4__, __GLib__ and __Cairo__ development files to be installed on your system. See the [requirements page](http://gtk-rs.org/docs/requirements.html). ## Using We recommend using [crates from crates.io](https://crates.io/keywords/gtk-rs), as [demonstrated here](http://gtk-rs.org/#using). If you want to track the bleeding edge, use the git dependency instead: ```toml [dependencies] gtk = { git = "https://github.com/gtk-rs/gtk4.git" } ``` Avoid mixing versioned and git crates like this: ```toml # This will not compile [dependencies] gdk = "0.2" gtk = { git = "https://github.com/gtk-rs/gtk4.git" } ``` ## Documentation The majority of the documentation is kept [in a separate repo][gtk-md] due to licensing issues. You can pull it in with cargo: ```shell > cargo build --features embed-lgpl-docs ``` Changes to those doc-comments should be submitted to the `lgpl-docs` repo. Avoid including those embedded doc-comments in PRs to this repo. The opposite feature removes all of those docs regardless of edits: ```shell > cargo build --features purge-lgpl-docs ``` These features **rewrite the crate sources** so it's sufficient to enable them once. **Omitting them in the following `cargo` invocations will not undo their effects!** Generate the docs: ```shell > cargo doc ``` [gtk-md]: https://github.com/gtk-rs/lgpl-docs/blob/master/README.md ## Contribute Contributor you're welcome! See the general [bindings documentation](http://gtk-rs.org/docs/glib/). Most 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 ```shell > make gir ``` When opening a PR please put the changes to the `src/auto` directory in a separate commit. ## License __gtk4__ is available under the MIT License, please refer to it.