Skip to content

Merge repos #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 270 commits into from
Nov 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
270 commits
Select commit Hold shift + click to select a range
65b74cd
Remove events
sfanxiang Jun 21, 2019
3cb1642
Implement TimeCoord
sfanxiang Jun 21, 2019
a1c1a20
Regen
sfanxiang Jun 21, 2019
9298acd
Update gir
sfanxiang Jun 21, 2019
b4ad7ab
ffi to sys
sfanxiang Jun 21, 2019
f251d10
Regen
sfanxiang Jun 21, 2019
94c0ff1
Add init/clear functions to Gdk.Rectangle
sfanxiang Jun 21, 2019
088d88b
Regen
sfanxiang Jun 21, 2019
e2578e7
time_coord: Implement FromGlibContainerAsVec for *mut gdk_sys::GdkTim…
sfanxiang Jun 21, 2019
260a15d
Update minimum rust stable version to 1.34.0
sfanxiang Jun 21, 2019
f573da0
Update minimum rust stable version to 1.34.0
sfanxiang Jun 21, 2019
8e6281c
Implement RoundedRect
sfanxiang Jun 25, 2019
9e4407f
Implement Shadow
sfanxiang Jun 25, 2019
90ca5cd
Replace MaybeUninit with mem::uninitialized()
sfanxiang Jun 25, 2019
01d8337
Implement ColorStop
sfanxiang Jun 26, 2019
ed6f40a
Gir.toml: Move ignore to manual
sfanxiang Jun 26, 2019
8629d37
Impl FromGlibPtrNone for RoundedRect
sfanxiang Jun 26, 2019
234059d
Gir.toml: Ignore ColorStop arrays
sfanxiang Jun 26, 2019
2f17bc1
Regen
sfanxiang Jun 26, 2019
17403bd
Gir.toml: Fix ordering
sfanxiang Jun 26, 2019
ed165c1
color_stop: Add init asserts
sfanxiang Jun 26, 2019
71bf1e3
Add RenderNode subtypes
sfanxiang Jun 26, 2019
b92287d
Regen
sfanxiang Jun 26, 2019
a54a344
render_nodes: Remove unneeded Option and fix return types for new()
sfanxiang Jun 28, 2019
8fdd89b
render_nodes: Add BorderNode::new()
sfanxiang Jun 28, 2019
9dde1ad
render_nodes: Take self as a parameter
sfanxiang Jun 28, 2019
8b01972
BorderNode: Implement peek_widths()
sfanxiang Jun 28, 2019
f8d577b
Add peek_surface() to CairoNode
sfanxiang Jun 28, 2019
0790d17
Implement ContainerNode::new()
sfanxiang Jun 28, 2019
3a6387f
Implement LinearGradientNode::new()
sfanxiang Jun 28, 2019
342a47c
ColorStop: Implement FromGlibContainerAsVec
sfanxiang Jun 28, 2019
07401d6
Implement LinearGradientNode: peek_color_stops()
sfanxiang Jun 28, 2019
bc31d4b
Fix ContainerNode and TextNode
sfanxiang Jun 28, 2019
4455459
Implement LinearGradientNode::new_repeating()
sfanxiang Jun 28, 2019
3645a0a
render_nodes: Remove TODO for text_node_peek_glyphs()
sfanxiang Jun 28, 2019
908ed81
render_nodes: Remove unneeded assert_initialized_main_thread
sfanxiang Jun 28, 2019
70a586a
render_nodes: Add init assert to try_from()
sfanxiang Jun 28, 2019
0211b42
render_nodes: Simplify subtypes
sfanxiang Jul 3, 2019
64e2857
render_nodes: Use idiomatic &self
sfanxiang Jul 3, 2019
fc5ecb6
Gir.toml: Remove interface types included by mistake
sfanxiang Jul 4, 2019
d4d428a
Gir.toml: Remove unknown Gdk.DrawingContext
sfanxiang Jul 4, 2019
6327e3a
Manually implement Geometry
sfanxiang Jul 4, 2019
fd2aadf
Regen
sfanxiang Jul 4, 2019
b76199e
Manually implement KeymapKey
sfanxiang Jul 4, 2019
2038f36
Regen
sfanxiang Jul 4, 2019
9062e34
Gir.toml: Add pango.Direction
sfanxiang Jul 4, 2019
4063f53
Regen
sfanxiang Jul 4, 2019
5cc43bb
Gir.toml: Remove Gdk.Point because it doesn't appear in any API
sfanxiang Jul 4, 2019
1c068b7
lib: Import glib types
sfanxiang Jul 4, 2019
eaefdab
Gir.toml: Add some external types
sfanxiang Jul 4, 2019
72e9b43
Regen
sfanxiang Jul 4, 2019
6b8d1ae
Implement DrawContext::get_frame_region
sfanxiang Jul 11, 2019
e9f1518
Implement pango_layout_line_get_clip_region and pango_layout_get_clip…
sfanxiang Jul 11, 2019
0ee3c18
Gir.toml: Add cairo.Region, and fix Surface::set_opaque_region()
sfanxiang Jul 12, 2019
d29e74a
Regen
sfanxiang Jul 12, 2019
3560310
Implement Surface::create_similar_surface
sfanxiang Jul 14, 2019
af01078
Add gtk4 files
sfanxiang Jul 15, 2019
63f1dfc
Cargo.toml: Change self-referencing git to path
sfanxiang Jul 15, 2019
a03e0ce
Update license year
sfanxiang Jul 15, 2019
1417a53
Regen
sfanxiang Jul 16, 2019
9f620a6
Gir.toml: Ignore create_similar_surface
sfanxiang Jul 18, 2019
77bc801
Regen
sfanxiang Jul 18, 2019
dd396cb
travis: Update minimum rust stable version
sfanxiang Jul 18, 2019
27166e7
render_nodes: Use correct license text
sfanxiang Jul 19, 2019
65592d1
Implement event subtypes
sfanxiang Jul 19, 2019
68b69a1
Regen
sfanxiang Jul 19, 2019
9a7671f
display: Fix non-nullable getters
sfanxiang Jul 21, 2019
a56dfe2
Implement ContentDeserializer and ContentSerializer
sfanxiang Jul 21, 2019
decb114
Regen
sfanxiang Jul 21, 2019
94f0177
Update gir
sfanxiang Jul 21, 2019
f383d22
Regen
sfanxiang Jul 21, 2019
47bc61e
Gir.toml: Fix order
sfanxiang Jul 21, 2019
9d1dac4
Add init assert to content_serialize_async_future
sfanxiang Jul 21, 2019
4b4b874
Regen
sfanxiang Jul 21, 2019
faaad94
Add Gio.InputStream and fix errors
sfanxiang Jul 21, 2019
db1e053
Regen
sfanxiang Jul 21, 2019
6ea1764
Gir.toml: Ignore Event::new()
sfanxiang Jul 22, 2019
ebf29ab
Gir.toml: Clarify that get_motion_history() is manual
sfanxiang Jul 22, 2019
a0b0188
Regen
sfanxiang Jul 22, 2019
6c2eba3
Gir.toml: Ignore set_task_data in ContentDeserializer and ContentSeri…
sfanxiang Jul 22, 2019
26c563c
Regen
sfanxiang Jul 22, 2019
5c680b6
Gir.toml: Disable event setters
sfanxiang Jul 23, 2019
33a9b8c
events: Make getters type-specific
sfanxiang Jul 23, 2019
4608360
Regen
sfanxiang Jul 23, 2019
dd357d7
add doc rule
GuillaumeGomez Mar 23, 2019
15af82e
Run `cargo fmt` after gir
sdroege Jun 13, 2019
24cf9f3
replace mem::uninitialized
GuillaumeGomez Jul 10, 2019
165b0a8
cargo fmt
sfanxiang Jul 25, 2019
e1040a9
add doc rule
GuillaumeGomez Mar 23, 2019
b85691a
Run `cargo fmt` after gir
sdroege Jun 13, 2019
c768112
cargo fmt
sfanxiang Jul 25, 2019
ace2960
build.rs: Remove event.rs from IGNORES
sfanxiang Jul 25, 2019
2d87fbe
build.rs: Remove event.rs from IGNORES
sfanxiang Jul 25, 2019
f0f4ea5
Update minimum rust stable version to 1.36.0
sfanxiang Jul 25, 2019
752df85
README.md: Update for gtk4
sfanxiang Jul 12, 2019
747fd0d
Use renamed graphene-rs package
sfanxiang Jul 26, 2019
d346bbb
Cargo.toml: Use new graphene-sys
sfanxiang Jul 27, 2019
b8533ff
README.md: Remove gitter badge
sfanxiang Jul 30, 2019
048c2c6
README.md: Update for gtk4
sfanxiang Jul 12, 2019
7fe66b0
README.md: Remove gitter badge
sfanxiang Jul 30, 2019
8310c44
Cargo.toml: Set version to 0.1.0
sfanxiang Jul 30, 2019
9a66bd6
Update url to gtk-rs
sfanxiang Jul 12, 2019
aca15b8
Update gir-files
sfanxiang Jul 30, 2019
f96057c
Cargo.toml: Set version to 0.1.0
sfanxiang Jul 30, 2019
6dac6a0
Update url to gtk-rs
sfanxiang Jul 30, 2019
c08a01e
Update gir-files
sfanxiang Jul 30, 2019
c9d36c4
Regen
sfanxiang Jul 30, 2019
c940c84
Regen
sfanxiang Jul 30, 2019
6717451
regen
GuillaumeGomez Jul 26, 2019
4cbccad
Merge pull request #148 from gtk-rs/regen
GuillaumeGomez Aug 3, 2019
c9b92bc
Remove graphene
sfanxiang Aug 6, 2019
03b0e40
Merge pull request #149 from sfanxiang/remove-graphene
GuillaumeGomez Aug 7, 2019
f968571
Update gir
sfanxiang Aug 13, 2019
862752d
Regen
sfanxiang Aug 13, 2019
87cd945
Update gir
sfanxiang Aug 13, 2019
ba6f464
Regen
sfanxiang Aug 13, 2019
3695eae
Merge pull request #1 from sfanxiang/fix-gir
sfanxiang Aug 14, 2019
9b169a6
Merge pull request #1 from sfanxiang/fix-gir
sfanxiang Aug 14, 2019
9c0bbd5
Add cairo_interaction
sfanxiang Aug 28, 2019
0cfde3b
Regen
sfanxiang Aug 28, 2019
05a0b1d
Merge pull request #3 from sfanxiang/cairo_interaction
GuillaumeGomez Aug 29, 2019
3b2d6b1
Mark GL related Cairo interaction functions as unsafe
sdroege Sep 5, 2019
aba8ac4
Rename Cairo interaction traits to include a Gdk prefix
sdroege Sep 5, 2019
9f0f8b4
Merge pull request #4 from sdroege/cairo-interaction
sfanxiang Sep 5, 2019
7503a10
Improve docs.rs documentation
GuillaumeGomez Sep 6, 2019
a65ea5e
Improve docs.rs documentation
GuillaumeGomez Sep 6, 2019
0396aa7
Update travis file
GuillaumeGomez Sep 6, 2019
fbf8df0
Merge pull request #5 from gtk-rs/docs-rs
GuillaumeGomez Sep 6, 2019
730359c
Update travis file
GuillaumeGomez Sep 6, 2019
a689f48
Merge pull request #2 from gtk-rs/docs-rs
GuillaumeGomez Sep 7, 2019
28df0c7
Implement get_history function on Device type
GuillaumeGomez Sep 11, 2019
3d3e951
Merge pull request #6 from GuillaumeGomez/device-get-history
sfanxiang Sep 12, 2019
b8f4732
regen
GuillaumeGomez Sep 18, 2019
34a6d12
Merge pull request #150 from GuillaumeGomez/regen
GuillaumeGomez Sep 21, 2019
cc7c41c
Fix invalid cargo key for docs.rs
GuillaumeGomez Sep 23, 2019
85bfeba
Merge pull request #7 from GuillaumeGomez/docs-rs
sfanxiang Sep 23, 2019
4ba7945
Fix invalid cargo key for docs.rs
GuillaumeGomez Sep 26, 2019
a8ba6ec
Merge pull request #3 from GuillaumeGomez/docs-rs
sfanxiang Sep 26, 2019
95ad23d
regen
GuillaumeGomez Oct 30, 2019
e59a540
Merge pull request #152 from GuillaumeGomez/regen
GuillaumeGomez Oct 31, 2019
7bcb652
Update gir submodules
GuillaumeGomez Nov 11, 2019
301e4c1
regen
GuillaumeGomez Nov 11, 2019
b1fa1a1
fix glib reexports
GuillaumeGomez Nov 11, 2019
278dd69
futures
GuillaumeGomez Nov 11, 2019
d426954
Fix futures build
sdroege Nov 11, 2019
824f0b7
Merge pull request #8 from GuillaumeGomez/regen
GuillaumeGomez Nov 11, 2019
8d66229
Update gir submodules
GuillaumeGomez Nov 11, 2019
a8af917
regen
GuillaumeGomez Nov 11, 2019
7a9b8cb
Fix glib reexports
GuillaumeGomez Nov 11, 2019
62e750e
Merge pull request #4 from GuillaumeGomez/regen
GuillaumeGomez Nov 11, 2019
9755fdb
Don't reexport prelude content
GuillaumeGomez Nov 11, 2019
d9f8588
Don't reexport prelude content
GuillaumeGomez Nov 11, 2019
be4a427
Merge pull request #9 from GuillaumeGomez/regen
GuillaumeGomez Nov 11, 2019
26ef250
Merge pull request #5 from GuillaumeGomez/regen
GuillaumeGomez Nov 11, 2019
c62e991
Update gtk4-sys etc.
EPashkin Nov 15, 2019
0f936fe
Merge pull request #154 from EPashkin/tempfile
GuillaumeGomez Nov 16, 2019
d3d9fde
Update gir
sdroege Nov 20, 2019
104eed2
Regenerate everything with latest gir
sdroege Nov 20, 2019
482e666
Update manual code and get rid of fragile dependency
sdroege Nov 20, 2019
165f060
Merge pull request #10 from sdroege/gio-futures-without-fragile
GuillaumeGomez Nov 21, 2019
94f5396
Fix fixed size arrays
EPashkin Dec 15, 2019
ed29d6f
Merge pull request #158 from EPashkin/fix_fixed_arrays
GuillaumeGomez Dec 15, 2019
7851884
Delete LGPL
GuillaumeGomez Dec 20, 2019
bacd74d
Delete LGPL
GuillaumeGomez Dec 20, 2019
b8ee047
Merge pull request #11 from gtk-rs/GuillaumeGomez-patch-1
GuillaumeGomez Dec 20, 2019
3cea3d3
Merge pull request #6 from gtk-rs/GuillaumeGomez-patch-1
GuillaumeGomez Dec 20, 2019
3a01c7c
[ci skip] Add sponsor button
GuillaumeGomez Apr 2, 2020
bf87233
Merge pull request #12 from GuillaumeGomez/sponsor
GuillaumeGomez Apr 2, 2020
49a7071
[ci skip] Add sponsor button
GuillaumeGomez Apr 2, 2020
8ed67ce
Merge pull request #7 from GuillaumeGomez/sponsor
GuillaumeGomez Apr 2, 2020
3f76f2e
Changes from new eoans gir-files
EPashkin Apr 26, 2020
6ade9e3
Merge pull request #163 from EPashkin/new_eoan_gkt4
GuillaumeGomez Apr 26, 2020
4401860
Merge pull request #165 from EPashkin/fix_manual_in_gdkx11-sys
GuillaumeGomez Apr 26, 2020
2176a1d
Use options.split_build_rs
EPashkin May 5, 2020
7a6d3c5
Merge pull request #168 from EPashkin/split_build_rs
GuillaumeGomez May 5, 2020
94a83df
Fix build_version.rs
EPashkin May 5, 2020
d9f180d
Merge pull request #169 from EPashkin/fix_split_build_rs
GuillaumeGomez May 5, 2020
5928cc1
Restore missing library versions in build.rs
EPashkin May 5, 2020
6d3c1bc
Merge pull request #170 from EPashkin/Restore_missing_library_versions
GuillaumeGomez May 5, 2020
3ef93dc
Update submodules
EPashkin Jun 8, 2020
af867e8
Merge pull request #164 from EPashkin/focal
GuillaumeGomez Jun 11, 2020
008c1e1
Regenerate
sdroege Jun 11, 2020
6e7054f
Merge pull request #171 from sdroege/get-type-versions
sdroege Jun 16, 2020
2ecadd8
Regenerate with latest gir
sdroege Jun 26, 2020
c6998fc
Merge pull request #174 from sdroege/sysdeps
GuillaumeGomez Jun 26, 2020
504ef9a
Use eprintln
EPashkin Jun 29, 2020
af61fa9
Merge pull request #175 from EPashkin/use_eprintln
sdroege Jun 29, 2020
19dbd47
regenerate with the latest gir
bilelmoussaoui Jul 10, 2020
0177032
Merge pull request #8 from bilelmoussaoui/bilelmoussaoui/regen
sfanxiang Jul 11, 2020
3716239
Regenerate with new link attributs
seungha-yang Oct 2, 2020
c8772d4
Update package.links field based on native library name
seungha-yang Oct 2, 2020
95677ad
Merge pull request #181 from seungha-yang/link-attr
GuillaumeGomez Oct 4, 2020
e8b8346
Use https for all links
dns2utf8 Oct 4, 2020
730c0b4
libs: Update with latest gir files
BrainBlasted Oct 9, 2020
05fbc85
Merge pull request #183 from BrainBlasted/update-groovy
GuillaumeGomez Oct 10, 2020
11e44e1
gtk4: stop linking gsk & gdk against it
bilelmoussaoui Oct 10, 2020
c00450d
Merge pull request #184 from bilelmoussaoui/bilelmoussaoui/gtk4
GuillaumeGomez Oct 11, 2020
b1d47fd
https for everybody
dns2utf8 Oct 16, 2020
3b32cb5
Use https for all links
dns2utf8 Oct 4, 2020
39b1bb1
Merge pull request #9 from dns2utf8/https
GuillaumeGomez Oct 16, 2020
6bcc1b6
Merge pull request #14 from dns2utf8/https
GuillaumeGomez Oct 16, 2020
606479c
CI: replace travis with github actions
bilelmoussaoui Oct 17, 2020
d2f2f2c
CI: replace travis with github actions
bilelmoussaoui Oct 17, 2020
c4d0fb0
CI: migrate check_init_asserts to gtk-rs/checker
bilelmoussaoui Oct 17, 2020
db4377b
CI: migrate check_init_asserts to gtk-rs/checker
bilelmoussaoui Oct 17, 2020
874dba9
Merge pull request #11 from gtk-rs/bilelmoussaoui/github-actions
GuillaumeGomez Oct 19, 2020
d72b339
Merge pull request #16 from gtk-rs/bilelmoussaoui/github-actions
GuillaumeGomez Oct 19, 2020
0209eb8
groovy update: regenerate
bilelmoussaoui Oct 9, 2020
1c325e9
generate missing gsk nodes
bilelmoussaoui Oct 10, 2020
420ff1f
make it compile
bilelmoussaoui Oct 11, 2020
db09ece
gir: fix gir_check tests
bilelmoussaoui Oct 16, 2020
2764067
regen with latest gir
bilelmoussaoui Oct 16, 2020
f89766c
groovy update: regenerate
bilelmoussaoui Oct 9, 2020
5213a0d
gir: remove removed types
bilelmoussaoui Oct 10, 2020
252dfcb
generate missing events
bilelmoussaoui Oct 10, 2020
2668bfd
generate missing types
bilelmoussaoui Oct 10, 2020
cc20edc
generate missing builders
bilelmoussaoui Oct 10, 2020
bd1c4ee
gir: add missing manual types
bilelmoussaoui Oct 10, 2020
e00c177
make it compile
bilelmoussaoui Oct 11, 2020
c324817
regen with latest gir
bilelmoussaoui Oct 16, 2020
dd9d38f
Gir: re-add Glib.Priority to manual
bilelmoussaoui Oct 19, 2020
4b4303f
popup layout: add get_offset
bilelmoussaoui Oct 19, 2020
4eb7a6e
Merge pull request #15 from bilelmoussaoui/bilelmoussaoui/update
bilelmoussaoui Oct 19, 2020
742404e
cargo: use gdk from gtk-rs
bilelmoussaoui Oct 19, 2020
0297ff0
border node: remove manual peek_widths for now
bilelmoussaoui Oct 19, 2020
54de915
Gir: properly document peek_widths manual reason
bilelmoussaoui Oct 19, 2020
359d6f2
Re-add GskColorStop & GskShadow
bilelmoussaoui Oct 19, 2020
5f8e2f8
put VulkanRenderer behind a feature flag
bilelmoussaoui Oct 19, 2020
3589aee
Shadow Node: add an assertion for peek_shadow's index
bilelmoussaoui Oct 19, 2020
384e238
put Broadway behind a feature flag
bilelmoussaoui Oct 19, 2020
ebdbdfc
Merge pull request #10 from bilelmoussaoui/bilelmoussaoui/update
bilelmoussaoui Oct 19, 2020
a2a71e2
CI: use a custom image
bilelmoussaoui Oct 22, 2020
bf86b8f
CI: use a custom image
bilelmoussaoui Oct 22, 2020
158be4a
CI: add a docs job
bilelmoussaoui Oct 22, 2020
1977c62
CI: add a docs job
bilelmoussaoui Oct 22, 2020
39cc35b
Merge pull request #15 from gtk-rs/bilelmoussaoui/ci
bilelmoussaoui Oct 22, 2020
4786be5
gsk4: prepare for migration
bilelmoussaoui Nov 4, 2020
735d001
CI: add a docs job
bilelmoussaoui Oct 22, 2020
311e7a7
merge gdk4 repository
bilelmoussaoui Nov 4, 2020
d662cbf
gtk4: init migration
bilelmoussaoui Nov 4, 2020
2ac8219
gdk4: migrate repository
bilelmoussaoui Nov 4, 2020
ea313e4
gsk4: migrate repository
bilelmoussaoui Nov 4, 2020
509c495
sys: merge gtk4 related crates
bilelmoussaoui Nov 4, 2020
945a401
sys: move to per crate subdir
bilelmoussaoui Nov 4, 2020
eaf728c
cargo: create a workspace
bilelmoussaoui Nov 4, 2020
911a16f
cargo: update dependencies sources
bilelmoussaoui Nov 4, 2020
62706cd
CI: update post migration
bilelmoussaoui Nov 4, 2020
464122c
add a copy of generator & regen
bilelmoussaoui Nov 4, 2020
f3c7231
add a README
bilelmoussaoui Nov 4, 2020
9f5302b
sys: migrate missing configs & regen
bilelmoussaoui Nov 4, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
45 changes: 19 additions & 26 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,25 @@ jobs:
with:
toolchain: ${{ matrix.rust }}
override: true
- uses: actions-rs/cargo@v1
name: "Docs"
with:
command: doc
args: --features "dox,embed-lgpl-docs"
- uses: actions-rs/cargo@v1
name: "Test"
with:
command: test
args: --features "embed-lgpl-docs"
- uses: actions-rs/cargo@v1
name: "Build"
with:
command: build
args: --features "purge-lgpl-docs"
- run: git diff -R --exit-code
# - uses: actions/checkout@v2
# with:
# repository: gtk-rs/examples4
# ref: master
# path: examples4
# - name: Examples
# working-directory: examples4
# run: cargo check
- name: install dependencies
run: sudo dnf install -y xorg-x11-server-Xvfb
# gsk4
- name: "gsk4: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path gsk4/Cargo.toml --all-features
- name: "gsk4: build"
run: cargo build --manifest-path gsk4/Cargo.toml --all-features
# gdk4
- name: "gdk4: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path gdk4/Cargo.toml --all-features
- name: "gdk4: build"
run: cargo build --manifest-path gdk4/Cargo.toml --all-features
# gtk4
- name: "gtk4: tests"
run: xvfb-run --auto-servernum cargo test --manifest-path gtk4/Cargo.toml --all-features
- name: "gtk4: build"
run: cargo build --manifest-path gtk4/Cargo.toml --all-features

- uses: bcomnes/cleanup-xvfb@v1

fmt:
name: Rustfmt
Expand All @@ -64,13 +59,11 @@ jobs:
with:
command: fmt
args: --all -- --check
- run: make regen_check

checker:
name: gtk-rs checker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: gtk-rs/checker
Expand Down
71 changes: 9 additions & 62 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,64 +1,11 @@
[package]
documentation = "https://gtk-rs.org/docs/gtk4/"
categories = ["api-bindings", "gui"]
license = "MIT"
description = "Rust bindings for the GTK 4 library"
name = "gtk4"
homepage = "https://gtk-rs.org/"
authors = ["The Gtk-rs Project Developers"]
readme = "README.md"
version = "0.1.0"
keywords = ["gtk", "gtk4", "gtk-rs", "gnome", "GUI"]
repository = "https://github.com/gtk-rs/gtk4"
build = "build.rs"
exclude = [
"gir-files/*",
[workspace]
members = [
"gdk4",
"gdk4/sys",
"gsk4",
"gsk4/sys",
"gtk4",
"gtk4/sys",
]

[badges]
appveyor = { repository = "GuillaumeGomez/gtk4", service = "github" }
travis-ci = { repository = "gtk-rs/gtk4" }

[lib]
name = "gtk4"

[features]
purge-lgpl-docs = ["gtk-rs-lgpl-docs", "gdk4/purge-lgpl-docs", "gsk4/purge-lgpl-docs"]
embed-lgpl-docs = ["gtk-rs-lgpl-docs", "gdk4/embed-lgpl-docs", "gsk4/embed-lgpl-docs"]
dox = ["gdk4/dox", "gsk4/dox", "gtk4-sys/dox"]

[package.metadata.docs.rs]
features = ["dox", "embed-lgpl-docs"]

[build-dependencies.gtk-rs-lgpl-docs]
version = "0.1.3"
optional = true
git = "https://github.com/gtk-rs/lgpl-docs"

[dependencies]
libc = "0.2"
bitflags = "1.0"
once_cell = "1.0"
atk = { git = "https://github.com/gtk-rs/atk" }
atk-sys = { git = "https://github.com/gtk-rs/sys" }
cairo-sys-rs = { git = "https://github.com/gtk-rs/cairo" }
gdk-pixbuf-sys = { git = "https://github.com/gtk-rs/sys" }
gdk4-sys = { git = "https://github.com/gtk-rs/sys" }
gio-sys = { git = "https://github.com/gtk-rs/sys" }
glib-sys = { git = "https://github.com/gtk-rs/sys" }
gobject-sys = { git = "https://github.com/gtk-rs/sys" }
graphene-sys = { git = "https://github.com/gtk-rs/graphene" }
gsk4-sys = { git = "https://github.com/gtk-rs/sys" }
gtk4-sys = { git = "https://github.com/gtk-rs/sys" }
pango-sys = { git = "https://github.com/gtk-rs/sys" }
cairo-rs = { git = "https://github.com/gtk-rs/cairo" }
gio = { git = "https://github.com/gtk-rs/gio", features = ["v2_46"] }
glib = { git = "https://github.com/gtk-rs/glib" }
gdk4 = { git = "https://github.com/gtk-rs/gdk4" }
graphene = { package = "graphene-rs", git = "https://github.com/gtk-rs/graphene" }
gsk4 = { git = "https://github.com/gtk-rs/gsk4" }
gdk-pixbuf = { git = "https://github.com/gtk-rs/gdk-pixbuf" }
pango = { git = "https://github.com/gtk-rs/pango", features = ["v1_46"] }

[dev-dependencies]
gir-format-check = "^0.1"
exclude = ["checker", "gir"]
31 changes: 0 additions & 31 deletions Makefile

This file was deleted.

92 changes: 27 additions & 65 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,79 +1,41 @@
# gtk4 ![CI](https://github.com/gtk-rs/gtk4/workflows/CI/badge.svg)
# gtk4-rs

[Project site](https://gtk-rs.org/) | [Online documentation](https://gtk-rs.org/docs-src/)
The `gtk4-rs` are a group of crates that aims to provide gtk4 bindings.

__Rust__ bindings and wrappers for __GTK 4__.
This repository contains all the "core" crates of gtk 4. For more
information about each crate, please refer to their `README.md` file in their directory.

## Building
## Regenerating

__gtk4__ expects __GTK 4__, __GLib__ and __Cairo__ development files to be installed on your system.
See the [requirements page](https://gtk-rs.org/docs/requirements.html).
To regenerate crates using [gir], please use the `generator.py`
file as follows:

## Using

We recommend using [crates from crates.io](https://crates.io/keywords/gtk-rs),
as [demonstrated here](https://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
```bash
$ python3 generator.py
```

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!
## Development

See the general [bindings documentation](https://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
This repository is structured as follows:

```shell
> make gir
```text
- crate/
|
|-- README.md
|-- Gir.toml
|-- Cargo.toml
|-- src/
|-- sys/
```

When opening a PR please put the changes to the `src/auto` directory in a separate commit.
The `crate` is a "top" directory (so "gdk4" or "gtk4" in here for example). I listed some
import files, let's quickly explain them:

## License
* `README.md`: Explanations about the crate itself and eventually some details.
* `Gir.toml`: Used by [gir] to generate most of the crates' code.
* `Cargo.toml`: File describing the crate, used by `cargo` and `Rust`.
* `src`: Contains the source code of the crate.
* `sys`: Contains the 1:1 bindings of the C API.

__gtk4__ is available under the MIT License, please refer to it.
[gir]: https://github.com/gtk-rs/gir
48 changes: 48 additions & 0 deletions gdk4/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[package]
name = "gdk4"
license = "MIT"
homepage = "https://gtk-rs.org/"
authors = ["The Gtk-rs Project Developers"]
keywords = ["gdk", "gdk4", "gtk", "gtk-rs", "gnome", "GUI"]
readme = "README.md"
documentation = "https://gtk-rs.org/docs/gdk4/"
version = "0.1.0"
description = "Rust bindings for the GDK 4 library"
repository = "https://github.com/gtk-rs/gdk4"
build = "build.rs"
exclude = [
"gir-files/*",
]

[lib]
name = "gdk4"

[features]
dox = ["gdk4-sys/dox", "glib/dox", "gio/dox", "gdk-pixbuf/dox", "cairo-rs/dox", "pango/dox"]
purge-lgpl-docs = ["gtk-rs-lgpl-docs", "cairo-rs/purge-lgpl-docs", "gdk-pixbuf/purge-lgpl-docs", "gio/purge-lgpl-docs"]
embed-lgpl-docs = ["gtk-rs-lgpl-docs", "cairo-rs/embed-lgpl-docs", "gdk-pixbuf/embed-lgpl-docs", "gio/embed-lgpl-docs"]

[package.metadata.docs.rs]
features = ["dox", "embed-lgpl-docs"]

[build-dependencies.gtk-rs-lgpl-docs]
version = "0.1.3"
optional = true
git = "https://github.com/gtk-rs/lgpl-docs"

[dependencies]
libc = "0.2"
bitflags = "1.0"
glib-sys = { git = "https://github.com/gtk-rs/gtk-rs" }
gdk4-sys = { path = "./sys" }
gio-sys = { git = "https://github.com/gtk-rs/gtk-rs" }
gobject-sys = { git = "https://github.com/gtk-rs/gtk-rs" }
cairo-sys-rs = { git = "https://github.com/gtk-rs/gtk-rs" }
cairo-rs = { git = "https://github.com/gtk-rs/gtk-rs" }
gdk-pixbuf = { git = "https://github.com/gtk-rs/gtk-rs" }
gio = { git = "https://github.com/gtk-rs/gtk-rs" }
glib = { git = "https://github.com/gtk-rs/gtk-rs" }
pango = { git = "https://github.com/gtk-rs/gtk-rs" }

[dev-dependencies]
gir-format-check = "^0.1"
Loading