Skip to content
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

Stop renaming ffi crates #1758

Merged
merged 4 commits into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ libc = "0.2"
pango-sys = {git = "https://github.com/gtk-rs/gtk-rs-core", version = "0.20", branch = "master", features = ["v1_46"]}
pango = {git = "https://github.com/gtk-rs/gtk-rs-core", version = "0.20", branch = "master", features = ["v1_46"]}
gir-format-check = "^0.1"
gdk4-x11-sys = {path = "gdk4-x11/sys", version = "0.9"}
gdk4-wayland-sys = {path = "gdk4-wayland/sys", version = "0.9"}
gdk4-win32-sys = {path = "gdk4-win32/sys", version = "0.9"}
gdk4-sys = {path = "gdk4/sys", version = "0.9"}
gdk = {package = "gdk4", path = "gdk4", version = "0.9"}
gsk4-sys = {path = "gsk4/sys", version = "0.9"}
Expand Down
10 changes: 5 additions & 5 deletions gdk4-wayland/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ rust-version.workspace = true
version.workspace = true

[features]
v4_4 = ["ffi/v4_4", "gdk/v4_4"]
v4_10 = ["ffi/v4_10", "v4_4", "gdk/v4_10"]
v4_12 = ["ffi/v4_12", "v4_10", "gdk/v4_12"]
v4_16 = ["ffi/v4_16", "v4_12", "gdk/v4_16"]
v4_4 = ["gdk4-wayland-sys/v4_4", "gdk/v4_4"]
v4_10 = ["gdk4-wayland-sys/v4_10", "v4_4", "gdk/v4_10"]
v4_12 = ["gdk4-wayland-sys/v4_12", "v4_10", "gdk/v4_12"]
v4_16 = ["gdk4-wayland-sys/v4_16", "v4_12", "gdk/v4_16"]
wayland_crate = ["wayland-client", "wayland-backend"]
egl = ["khronos-egl"]

[dependencies]
ffi = {path = "./sys", package = "gdk4-wayland-sys", version = "0.9"}
gdk4-wayland-sys.workspace = true
gdk.workspace= true
gio.workspace = true
glib.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion gdk4-wayland/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 839b834456d2)
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
from gir-files (https://github.com/gtk-rs/gir-files @ 74aa91d9063d)
1 change: 1 addition & 0 deletions gdk4-wayland/src/auto/wayland_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::ffi;
use glib::translate::*;

glib::wrapper! {
Expand Down
1 change: 1 addition & 0 deletions gdk4-wayland/src/auto/wayland_display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// DO NOT EDIT
#![allow(deprecated)]

use crate::ffi;
use glib::translate::*;

glib::wrapper! {
Expand Down
2 changes: 2 additions & 0 deletions gdk4-wayland/src/auto/wayland_gl_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::ffi;

glib::wrapper! {
#[doc(alias = "GdkWaylandGLContext")]
pub struct WaylandGLContext(Object<ffi::GdkWaylandGLContext, ffi::GdkWaylandGLContextClass>) @extends gdk::GLContext, gdk::DrawContext;
Expand Down
2 changes: 2 additions & 0 deletions gdk4-wayland/src/auto/wayland_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::ffi;

glib::wrapper! {
#[doc(alias = "GdkWaylandMonitor")]
pub struct WaylandMonitor(Object<ffi::GdkWaylandMonitor, ffi::GdkWaylandMonitorClass>) @extends gdk::Monitor;
Expand Down
2 changes: 1 addition & 1 deletion gdk4-wayland/src/auto/wayland_popup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::WaylandSurface;
use crate::{ffi, WaylandSurface};

glib::wrapper! {
#[doc(alias = "GdkWaylandPopup")]
Expand Down
2 changes: 2 additions & 0 deletions gdk4-wayland/src/auto/wayland_seat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::ffi;

glib::wrapper! {
#[doc(alias = "GdkWaylandSeat")]
pub struct WaylandSeat(Object<ffi::GdkWaylandSeat, ffi::GdkWaylandSeatClass>) @extends gdk::Seat;
Expand Down
2 changes: 2 additions & 0 deletions gdk4-wayland/src/auto/wayland_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::ffi;

glib::wrapper! {
#[doc(alias = "GdkWaylandSurface")]
pub struct WaylandSurface(Object<ffi::GdkWaylandSurface>) @extends gdk::Surface;
Expand Down
2 changes: 1 addition & 1 deletion gdk4-wayland/src/auto/wayland_toplevel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// DO NOT EDIT
#![allow(deprecated)]

use crate::WaylandSurface;
use crate::{ffi, WaylandSurface};
use glib::translate::*;

glib::wrapper! {
Expand Down
2 changes: 1 addition & 1 deletion gdk4-wayland/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#![allow(deprecated)]
#![cfg_attr(docsrs, feature(doc_cfg))]

pub use ffi;
pub use gdk;
pub use gdk4_wayland_sys as ffi;
pub use gio;
pub use glib;
#[cfg(all(feature = "v4_4", feature = "egl"))]
Expand Down
4 changes: 2 additions & 2 deletions gdk4-wayland/src/wayland_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ use wayland_client::{
Proxy,
};

use crate::WaylandDevice;
#[cfg(feature = "wayland_crate")]
#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))]
use crate::prelude::*;
use crate::WaylandDevice;
use crate::{ffi, prelude::*};

impl WaylandDevice {
#[doc(alias = "gdk_wayland_device_get_wl_keyboard")]
Expand Down
3 changes: 3 additions & 0 deletions gdk4-wayland/src/wayland_display.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// Take a look at the license at the top of the repository in the LICENSE file.

#[cfg(feature = "wayland_crate")]
#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))]
use crate::ffi;
#[cfg(feature = "wayland_crate")]
#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))]
use glib::{prelude::*, translate::*, Quark};
Expand Down
5 changes: 4 additions & 1 deletion gdk4-wayland/src/wayland_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
use wayland_client::{backend::ObjectId, protocol::wl_output::WlOutput, Proxy};
#[cfg(feature = "wayland_crate")]
#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))]
use {crate::prelude::*, glib::translate::*};
use {
crate::{ffi, prelude::*},
glib::translate::*,
};

use crate::WaylandMonitor;

Expand Down
5 changes: 4 additions & 1 deletion gdk4-wayland/src/wayland_seat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
use wayland_client::{backend::ObjectId, protocol::wl_seat::WlSeat, Proxy};
#[cfg(feature = "wayland_crate")]
#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))]
use {crate::prelude::*, glib::translate::*};
use {
crate::{ffi, prelude::*},
glib::translate::*,
};

use crate::WaylandSeat;

Expand Down
2 changes: 1 addition & 1 deletion gdk4-wayland/src/wayland_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use glib::translate::*;
#[cfg_attr(docsrs, doc(cfg(feature = "wayland_crate")))]
use wayland_client::{backend::ObjectId, protocol::wl_surface::WlSurface, Proxy};

use crate::{prelude::*, WaylandSurface};
use crate::{ffi, prelude::*, WaylandSurface};

mod sealed {
pub trait Sealed {}
Expand Down
2 changes: 1 addition & 1 deletion gdk4-wayland/src/wayland_toplevel.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file.

use crate::WaylandToplevel;
use crate::{ffi, WaylandToplevel};
use glib::translate::*;
use std::boxed::Box as Box_;

Expand Down
2 changes: 1 addition & 1 deletion gdk4-wayland/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 839b834456d2)
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
from gir-files (https://github.com/gtk-rs/gir-files @ 74aa91d9063d)
4 changes: 2 additions & 2 deletions gdk4-win32/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ name = "gtk4-win32"
version = "4"

[features]
v4_4 = ["ffi/v4_4", "gdk/v4_4"]
v4_4 = ["gdk4-win32-sys/v4_4", "gdk/v4_4"]
egl = ["khronos-egl"]
win32 = ["windows"]

[dependencies]
ffi = { path = "./sys", version = "0.9", package = "gdk4-win32-sys"}
gdk4-win32-sys.workspace = true
gdk.workspace = true
gio.workspace = true
glib.workspace = true
Expand Down
1 change: 1 addition & 0 deletions gdk4-win32/src/auto/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::ffi;
use glib::translate::*;

#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
Expand Down
2 changes: 1 addition & 1 deletion gdk4-win32/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 839b834456d2)
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
from gir-files (https://github.com/gtk-rs/gir-files @ 74aa91d9063d)
2 changes: 1 addition & 1 deletion gdk4-win32/src/auto/win32_display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::Win32HCursor;
use crate::{ffi, Win32HCursor};
use glib::{prelude::*, translate::*};

glib::wrapper! {
Expand Down
2 changes: 2 additions & 0 deletions gdk4-win32/src/auto/win32_display_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::ffi;

glib::wrapper! {
#[doc(alias = "GdkWin32DisplayManager")]
pub struct Win32DisplayManager(Object<ffi::GdkWin32DisplayManager, ffi::GdkWin32DisplayManagerClass>) @extends gdk::DisplayManager;
Expand Down
2 changes: 2 additions & 0 deletions gdk4-win32/src/auto/win32_drag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::ffi;

glib::wrapper! {
#[doc(alias = "GdkWin32Drag")]
pub struct Win32Drag(Object<ffi::GdkWin32Drag, ffi::GdkWin32DragClass>) @extends gdk::Drag;
Expand Down
2 changes: 2 additions & 0 deletions gdk4-win32/src/auto/win32_gl_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::ffi;

glib::wrapper! {
#[doc(alias = "GdkWin32GLContext")]
pub struct Win32GLContext(Object<ffi::GdkWin32GLContext, ffi::GdkWin32GLContextClass>) @extends gdk::GLContext, gdk::DrawContext;
Expand Down
1 change: 1 addition & 0 deletions gdk4-win32/src/auto/win32_hcursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::ffi;
use glib::{prelude::*, translate::*};

glib::wrapper! {
Expand Down
1 change: 1 addition & 0 deletions gdk4-win32/src/auto/win32_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::ffi;
use glib::{prelude::*, translate::*};

glib::wrapper! {
Expand Down
2 changes: 2 additions & 0 deletions gdk4-win32/src/auto/win32_screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::ffi;

glib::wrapper! {
#[doc(alias = "GdkWin32Screen")]
pub struct Win32Screen(Object<ffi::GdkWin32Screen, ffi::GdkWin32ScreenClass>);
Expand Down
1 change: 1 addition & 0 deletions gdk4-win32/src/auto/win32_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// DO NOT EDIT
#![allow(deprecated)]

use crate::ffi;
use glib::{prelude::*, translate::*};

glib::wrapper! {
Expand Down
2 changes: 1 addition & 1 deletion gdk4-win32/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#![allow(deprecated)]
#![cfg_attr(docsrs, feature(doc_cfg))]

pub use ffi;
pub use gdk;
pub use gdk4_win32_sys as ffi;
pub use gio;
pub use glib;
#[cfg(feature = "win32")]
Expand Down
2 changes: 1 addition & 1 deletion gdk4-win32/src/win32_display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use glib::translate::*;
#[cfg_attr(docsrs, doc(cfg(all(feature = "v4_4", feature = "egl"))))]
use khronos_egl as egl;

use crate::{Win32Display, Win32MessageFilterReturn, MSG};
use crate::{ffi, Win32Display, Win32MessageFilterReturn, MSG};

impl Win32Display {
#[cfg(all(feature = "v4_4", feature = "egl"))]
Expand Down
2 changes: 1 addition & 1 deletion gdk4-win32/src/win32_hcursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::ptr::NonNull;

use glib::{translate::*, types::Pointee};

use crate::{prelude::*, Win32HCursor, HCURSOR};
use crate::{ffi, prelude::*, Win32HCursor, HCURSOR};

impl Win32HCursor {
#[doc(alias = "gdk_win32_hcursor_new")]
Expand Down
2 changes: 1 addition & 1 deletion gdk4-win32/src/win32_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use glib::translate::*;

use crate::{prelude::*, Win32Surface, HWND};
use crate::{ffi, prelude::*, Win32Surface, HWND};

impl Win32Surface {
#[doc(alias = "gdk_win32_surface_lookup_for_display")]
Expand Down
2 changes: 1 addition & 1 deletion gdk4-win32/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 839b834456d2)
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
from gir-files (https://github.com/gtk-rs/gir-files @ 74aa91d9063d)
8 changes: 4 additions & 4 deletions gdk4-x11/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ rust-version.workspace = true
version.workspace = true

[features]
v4_4 = ["ffi/v4_4", "gdk/v4_4"]
v4_10 = ["ffi/v4_10", "v4_4", "gdk/v4_10"]
v4_16 = ["ffi/v4_16", "v4_10", "gdk/v4_16"]
v4_4 = ["gdk4-x11-sys/v4_4", "gdk/v4_4"]
v4_10 = ["gdk4-x11-sys/v4_10", "v4_4", "gdk/v4_10"]
v4_16 = ["gdk4-x11-sys/v4_16", "v4_10", "gdk/v4_16"]
egl = ["khronos-egl"]
xlib = ["x11"]

[dependencies]
ffi = {path = "./sys", package = "gdk4-x11-sys", version = "0.9"}
gdk4-x11-sys.workspace = true
gdk.workspace = true
gio.workspace = true
glib.workspace = true
Expand Down
1 change: 1 addition & 0 deletions gdk4-x11/src/auto/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::ffi;
use glib::translate::*;

#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
Expand Down
2 changes: 1 addition & 1 deletion gdk4-x11/src/auto/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::{X11DeviceManagerXI2, X11DeviceXI2, X11Surface};
use crate::{ffi, X11DeviceManagerXI2, X11DeviceXI2, X11Surface};
use glib::translate::*;

#[doc(alias = "gdk_x11_device_get_id")]
Expand Down
2 changes: 1 addition & 1 deletion gdk4-x11/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 839b834456d2)
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
from gir-files (https://github.com/gtk-rs/gir-files @ 74aa91d9063d)
2 changes: 2 additions & 0 deletions gdk4-x11/src/auto/x11_app_launch_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::ffi;

glib::wrapper! {
#[doc(alias = "GdkX11AppLaunchContext")]
pub struct X11AppLaunchContext(Object<ffi::GdkX11AppLaunchContext, ffi::GdkX11AppLaunchContextClass>) @extends gdk::AppLaunchContext, gio::AppLaunchContext;
Expand Down
1 change: 1 addition & 0 deletions gdk4-x11/src/auto/x11_device_manager_xi2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::ffi;
use glib::{prelude::*, translate::*};

glib::wrapper! {
Expand Down
1 change: 1 addition & 0 deletions gdk4-x11/src/auto/x11_device_xi2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::ffi;
use glib::{prelude::*, translate::*};

glib::wrapper! {
Expand Down
2 changes: 1 addition & 1 deletion gdk4-x11/src/auto/x11_display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// DO NOT EDIT
#![allow(deprecated)]

use crate::X11Screen;
use crate::{ffi, X11Screen};
use glib::translate::*;

glib::wrapper! {
Expand Down
Loading
Loading