Skip to content

Commit 806b10e

Browse files
elmarcobilelmoussaoui
authored andcommitted
gdk: add 'gl' feature
Signed-off-by: Marc-André Lureau <[email protected]>
1 parent b75d09b commit 806b10e

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

gdk4/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ v4_6 = ["ffi/v4_6", "v4_4"]
2121
v4_8 = ["ffi/v4_8", "v4_6"]
2222
v4_10 = ["ffi/v4_10", "v4_8"]
2323
v4_12 = ["ffi/v4_12", "v4_10"]
24+
gl = ["dep:gl"]
2425

2526
[package.metadata.docs.rs]
2627
all-features = true
@@ -35,6 +36,7 @@ gio = {git = "https://github.com/gtk-rs/gtk-rs-core", version = "0.18", features
3536
glib = {git = "https://github.com/gtk-rs/gtk-rs-core", version = "0.18", features = ["v2_66"]}
3637
libc = "0.2"
3738
pango = {git = "https://github.com/gtk-rs/gtk-rs-core", version = "0.18", features = ["v1_46"]}
39+
gl = {version = "0.14", optional = true}
3840

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

gdk4/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ gdk = { git = "https://github.com/gtk-rs/gtk4-rs.git", package = "gdk4" }
4646
| `v4_6` | Enable the new APIs part of GTK 4.6 |
4747
| `v4_4` | Enable the new APIs part of GTK 4.4 |
4848
| `v4_2` | Enable the new APIs part of GTK 4.2 |
49+
| `gl` | Integration with the [gl](https://crates.io/crates/gl) crate |
4950

5051
### See Also
5152

gdk4/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ pub use cairo;
77
pub use ffi;
88
pub use gdk_pixbuf;
99
pub use gio;
10+
#[cfg(any(feature = "gl", docsrs))]
11+
#[cfg_attr(docsrs, doc(cfg(feature = "gl")))]
12+
pub use gl;
1013
pub use glib;
1114
pub use pango;
1215

0 commit comments

Comments
 (0)