• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

resources/H03-May-2022-

src/H03-May-2022-159,894140,279

tests/H03-May-2022-137

.cargo-checksum.jsonH A D03-May-202289 11

.cargo_vcs_info.jsonH A D01-Jan-197074 65

.gitignoreH A D22-Jun-2019101 1312

.gitmodulesH A D22-Jun-2019160 76

.travis.ymlH A D22-Jun-20191.9 KiB7069

CHANGELOG.mdH A D22-Jun-20193.7 KiB10171

COPYRIGHTH A D22-Jun-20192.5 KiB6965

Cargo.tomlH A D01-Jan-19702.8 KiB12197

Cargo.toml.orig-cargoH A D22-Jun-20191.9 KiB7365

Gir.tomlH A D22-Jun-201954.4 KiB2,3912,269

LGPLH A D22-Jun-201924.7 KiB483400

LICENSEH A D22-Jun-20191.1 KiB2317

MakefileH A D22-Jun-2019689 3223

README.mdH A D22-Jun-20192.5 KiB8252

appveyor.ymlH A D22-Jun-2019837 3127

build.rsH A D22-Jun-2019895 3227

check_init_assertsH A D22-Jun-2019541 2017

release_process.mdH A D22-Jun-20191.5 KiB1612

README.md

1# 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)
2
3[Project site](http://gtk-rs.org/) | [Online documentation](http://gtk-rs.org/docs/)
4
5__Rust__ bindings and wrappers for __GLib__, __GDK 3__, __GTK+ 3__  and __Cairo__.
6
7## Building
8
9__gtk__ expects __GTK+__, __GLib__ and __Cairo__ development files to be installed on your system.
10See the [requirements page](http://gtk-rs.org/docs/requirements.html).
11
12## Using
13
14We recommend using [crates from crates.io](https://crates.io/keywords/gtk-rs),
15as [demonstrated here](http://gtk-rs.org/#using).
16
17If you want to track the bleeding edge, use the git dependency instead:
18
19```toml
20[dependencies]
21gtk = { git = "https://github.com/gtk-rs/gtk.git" }
22```
23
24Avoid mixing versioned and git crates like this:
25
26```toml
27# This will not compile
28[dependencies]
29gdk = "0.2"
30gtk = { git = "https://github.com/gtk-rs/gtk.git" }
31```
32
33## Documentation
34
35The majority of the documentation is kept [in a separate repo][gtk-md] due to
36licensing issues. You can pull it in with cargo:
37
38```shell
39> cargo build --features embed-lgpl-docs
40```
41
42Changes to those doc-comments should be submitted to the `lgpl-docs` repo. Avoid
43including those embedded doc-comments in PRs to this repo.
44
45The opposite feature removes all of those docs regardless of edits:
46
47```shell
48> cargo build --features purge-lgpl-docs
49```
50
51These features **rewrite the crate sources** so it's sufficient to enable them
52once. **Omitting them in the following `cargo` invocations will not undo their
53effects!**
54
55Generate the docs:
56
57```shell
58> cargo doc --features v3_16
59```
60
61(if the installed GTK+ version is lower than 3.16, adjust the feature name accordingly).
62
63[gtk-md]: https://github.com/gtk-rs/lgpl-docs/blob/master/README.md
64
65## Contribute
66
67Contributor you're welcome!
68
69See the general [bindings documentation](http://gtk-rs.org/docs/glib/).
70
71Most 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
72
73```shell
74> make gir
75```
76
77When opening a PR please put the changes to the `src/auto` directory in a separate commit.
78
79## License
80
81__gtk__ is available under the MIT License, please refer to it.
82