Skip to content

Commit 29d16c7

Browse files
Adapt to no longer renamed ffi crates
1 parent b52de8a commit 29d16c7

File tree

251 files changed

+374
-305
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

251 files changed

+374
-305
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ libc = "0.2"
5858
pango-sys = {git = "https://github.com/gtk-rs/gtk-rs-core", version = "0.20", branch = "master", features = ["v1_46"]}
5959
pango = {git = "https://github.com/gtk-rs/gtk-rs-core", version = "0.20", branch = "master", features = ["v1_46"]}
6060
gir-format-check = "^0.1"
61+
gdk4-x11-sys = {path = "gdk4-x11/sys", version = "0.9"}
62+
gdk4-wayland-sys = {path = "gdk4-wayland/sys", version = "0.9"}
63+
gdk4-win32-sys = {path = "gdk4-win32/sys", version = "0.9"}
6164
gdk4-sys = {path = "gdk4/sys", version = "0.9"}
6265
gdk = {package = "gdk4", path = "gdk4", version = "0.9"}
6366
gsk4-sys = {path = "gsk4/sys", version = "0.9"}

gdk4-wayland/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ rust-version.workspace = true
1414
version.workspace = true
1515

1616
[features]
17-
v4_4 = ["ffi/v4_4", "gdk/v4_4"]
18-
v4_10 = ["ffi/v4_10", "v4_4", "gdk/v4_10"]
19-
v4_12 = ["ffi/v4_12", "v4_10", "gdk/v4_12"]
20-
v4_16 = ["ffi/v4_16", "v4_12", "gdk/v4_16"]
17+
v4_4 = ["gdk4-wayland-sys/v4_4", "gdk/v4_4"]
18+
v4_10 = ["gdk4-wayland-sys/v4_10", "v4_4", "gdk/v4_10"]
19+
v4_12 = ["gdk4-wayland-sys/v4_12", "v4_10", "gdk/v4_12"]
20+
v4_16 = ["gdk4-wayland-sys/v4_16", "v4_12", "gdk/v4_16"]
2121
wayland_crate = ["wayland-client", "wayland-backend"]
2222
egl = ["khronos-egl"]
2323

2424
[dependencies]
25-
ffi = {path = "./sys", package = "gdk4-wayland-sys", version = "0.9"}
25+
gdk4-wayland-sys.workspace = true
2626
gdk.workspace= true
2727
gio.workspace = true
2828
glib.workspace = true

gdk4-wayland/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#![allow(deprecated)]
55
#![cfg_attr(docsrs, feature(doc_cfg))]
66

7-
pub use ffi;
87
pub use gdk;
8+
pub use gdk4_wayland_sys as ffi;
99
pub use gio;
1010
pub use glib;
1111
#[cfg(all(feature = "v4_4", feature = "egl"))]

gdk4-wayland/src/wayland_device.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ use wayland_client::{
1111
Proxy,
1212
};
1313

14+
use crate::WaylandDevice;
1415
#[cfg(feature = "wayland_crate")]
1516
#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))]
16-
use crate::prelude::*;
17-
use crate::WaylandDevice;
17+
use crate::{ffi, prelude::*};
1818

1919
impl WaylandDevice {
2020
#[doc(alias = "gdk_wayland_device_get_wl_keyboard")]

gdk4-wayland/src/wayland_display.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// Take a look at the license at the top of the repository in the LICENSE file.
22

3+
#[cfg(feature = "wayland_crate")]
4+
#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))]
5+
use crate::ffi;
36
#[cfg(feature = "wayland_crate")]
47
#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))]
58
use glib::{prelude::*, translate::*, Quark};

gdk4-wayland/src/wayland_monitor.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
use wayland_client::{backend::ObjectId, protocol::wl_output::WlOutput, Proxy};
66
#[cfg(feature = "wayland_crate")]
77
#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))]
8-
use {crate::prelude::*, glib::translate::*};
8+
use {
9+
crate::{ffi, prelude::*},
10+
glib::translate::*,
11+
};
912

1013
use crate::WaylandMonitor;
1114

gdk4-wayland/src/wayland_seat.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
use wayland_client::{backend::ObjectId, protocol::wl_seat::WlSeat, Proxy};
66
#[cfg(feature = "wayland_crate")]
77
#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))]
8-
use {crate::prelude::*, glib::translate::*};
8+
use {
9+
crate::{ffi, prelude::*},
10+
glib::translate::*,
11+
};
912

1013
use crate::WaylandSeat;
1114

gdk4-wayland/src/wayland_surface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use glib::translate::*;
77
#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))]
88
use wayland_client::{backend::ObjectId, protocol::wl_surface::WlSurface, Proxy};
99

10-
use crate::{prelude::*, WaylandSurface};
10+
use crate::{ffi, prelude::*, WaylandSurface};
1111

1212
mod sealed {
1313
pub trait Sealed {}

gdk4-wayland/src/wayland_toplevel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Take a look at the license at the top of the repository in the LICENSE file.
22

3-
use crate::WaylandToplevel;
3+
use crate::{ffi, WaylandToplevel};
44
use glib::translate::*;
55
use std::boxed::Box as Box_;
66

gdk4-win32/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ name = "gtk4-win32"
1818
version = "4"
1919

2020
[features]
21-
v4_4 = ["ffi/v4_4", "gdk/v4_4"]
21+
v4_4 = ["gdk4-win32-sys/v4_4", "gdk/v4_4"]
2222
egl = ["khronos-egl"]
2323
win32 = ["windows"]
2424

2525
[dependencies]
26-
ffi = { path = "./sys", version = "0.9", package = "gdk4-win32-sys"}
26+
gdk4-win32-sys.workspace = true
2727
gdk.workspace = true
2828
gio.workspace = true
2929
glib.workspace = true

0 commit comments

Comments
 (0)