Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
d47e40e
Regenerate with latest gir
github-actions[bot] Nov 16, 2025
848cbd7
Generate bindings for win32/unix GLib/Gio
bilelmoussaoui Nov 21, 2025
1f7724b
Build new crates on CI
bilelmoussaoui Nov 21, 2025
623a450
gio/unix: Remove the manual fallback for MountEntry
bilelmoussaoui Nov 21, 2025
d621f11
glib: Lower host dep requirement
bilelmoussaoui Nov 21, 2025
e4fadff
glib/unix: Add missing futures feature
bilelmoussaoui Nov 21, 2025
35a85e5
gio/unix: Ignore a clippy lint
bilelmoussaoui Nov 21, 2025
82abb51
gio: Comment out a test & drop UnixFdMessage
bilelmoussaoui Nov 21, 2025
140bece
gdk-pixbuf: Ignore another clippy lint
bilelmoussaoui Nov 21, 2025
f4f74b3
gio/tests: Remove no longer useful headers
bilelmoussaoui Nov 21, 2025
c23fbb6
gio: Move various config options to gio-unix
bilelmoussaoui Nov 21, 2025
353f86a
glib: Remove no longer needed manual ffi functions
bilelmoussaoui Nov 21, 2025
bd5573f
glib/sys: Don't generate UnixPipe
bilelmoussaoui Nov 27, 2025
4f862db
glib/unix: HACK: Manually fix GIR file
bilelmoussaoui Nov 27, 2025
ceea97f
glib/source: Fix imoports on Win32
bilelmoussaoui Nov 27, 2025
a61fbca
glib/win32: Add missing imports
bilelmoussaoui Nov 27, 2025
81715f1
gio/win32: Manually implement streams
bilelmoussaoui Nov 27, 2025
654d642
ci/windows: Don't build latest feature of gio-win32
bilelmoussaoui Nov 27, 2025
8a1eb84
gio/win32: Add a type for GNetworkMonitorBase and drop duplicated man…
bilelmoussaoui Nov 27, 2025
4762c60
gio/win32: Add missing dep
bilelmoussaoui Nov 27, 2025
b53e260
deny: Drop no longer needed skips
bilelmoussaoui Nov 27, 2025
f9883ab
Add missing licenses
bilelmoussaoui Nov 27, 2025
ecca590
Regenerate with latest gir files
bilelmoussaoui Nov 30, 2025
c68c30d
Adapt to rust nightly docs changes
bilelmoussaoui Nov 30, 2025
0f99d90
ci/windows: Bump gsvbuild ref
bilelmoussaoui Nov 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
- { name: "cairo", features: "png,pdf,svg,ps,use_glib,v1_18,freetype,script,xcb,xlib,win32-surface", nightly: "--features 'png,pdf,svg,ps,use_glib,v1_18,freetype,script,xcb,xlib,win32-surface'", test_sys: true }
- { name: "gdk-pixbuf", features: "v2_42", nightly: "--all-features", test_sys: true }
- { name: "gio", features: "v2_84", nightly: "--all-features", test_sys: true }
- { name: "gio-unix", features: "v2_84", nightly: "--all-features", test_sys: true }
- { name: "glib", features: "v2_84,log", nightly: "--all-features", test_sys: true }
- { name: "glib-unix", features: "v2_80", nightly: "--all-features", test_sys: true }
- { name: "graphene", features: "v1_12", nightly: "", test_sys: true }
- { name: "pango", features: "v1_56", nightly: "", test_sys: true }
- { name: "pangocairo", features: "", nightly: "--all-features", test_sys: true }
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,17 @@ jobs:
-p gdk-pixbuf-sys
-p gio
-p gio-sys
-p gio-unix
-p gio-unix-sys
-p gio-win32
-p gio-win32-sys
-p glib
-p gobject-sys
-p glib-sys
-p glib-unix
-p glib-unix-sys
-p glib-win32
-p glib-win32-sys
-p gobject-sys
-p glib-macros
-p glib-build-tools
-p graphene-rs
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

env:
# git revision of gvsbuild we use for to build GLib and the other dependencies
gvsbuildref: 230e1074047b9654b76217c5d48b10c726fbe0f6
gvsbuildref: 352e6772c61763af1178b1bb0c2cb0adb8f81d4b
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs rebasing for your other PR that was merged :)


# bump this number if you want to force a rebuild of gvsbuild with the same revision
gvsbuildupdate: 1
Expand Down Expand Up @@ -81,7 +81,9 @@ jobs:
- { name: "cairo", test: true, args: "--features png,pdf,svg,ps,use_glib,v1_16,freetype,script,win32-surface" }
- { name: "gdk-pixbuf", test: true, args: "--features v2_42" }
- { name: "gio", test: true, args: "--features v2_80" }
- { name: "gio-win32", test: true, args: "--features v2_66" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happened

- { name: "glib", test: true, args: "--features v2_80" }
- { name: "glib-win32", test: true }
- { name: "glib-build-tools", test: false, args: "" }
- { name: "graphene", test: false, args: "" }
- { name: "pango", test: true, args: "--features v1_52" }
Expand Down
98 changes: 97 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,51 @@
[workspace]
resolver = "2"

default-members = [
"cairo",
"cairo/sys",
"gdk-pixbuf",
"gdk-pixbuf/sys",
"gio",
"gio/sys",
"gio-unix",
"gio-unix/sys",
"glib-build-tools",
"glib",
"glib/gobject-sys",
"glib/sys",
"glib-macros",
"glib-unix",
"glib-unix/sys",
"graphene",
"graphene/sys",
"examples",
"pango",
"pango/sys",
"pangocairo",
"pangocairo/sys",
]

members = [
"cairo",
"cairo/sys",
"gdk-pixbuf",
"gdk-pixbuf/sys",
"gio",
"gio/sys",
"gio-unix",
"gio-unix/sys",
"gio-win32",
"gio-win32/sys",
"glib-build-tools",
"glib",
"glib/gobject-sys",
"glib/sys",
"glib-macros",
"glib-unix",
"glib-unix/sys",
"glib-win32",
"glib-win32/sys",
"graphene",
"graphene/sys",
"examples",
Expand Down
9 changes: 0 additions & 9 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,6 @@ multiple-versions = "deny"
wildcards = "allow"
highlight = "all"

# system-deps depends on an old version
[[bans.skip]]
name = "toml_edit"
version = "0.22"

[[bans.skip]]
name = "toml_datetime"
version = "0.6"

[sources]
unknown-registry = "deny"
unknown-git = "deny"
3 changes: 3 additions & 0 deletions gdk-pixbuf/src/auto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
mod pixbuf;
pub use self::pixbuf::Pixbuf;

#[cfg_attr(feature = "v2_44", deprecated = "Since 2.44")]
mod pixbuf_animation;
#[cfg_attr(feature = "v2_44", deprecated = "Since 2.44")]
pub use self::pixbuf_animation::PixbufAnimation;

mod pixbuf_loader;
Expand All @@ -32,6 +34,7 @@ mod flags;
pub use self::flags::PixbufFormatFlags;

pub(crate) mod traits {
#[cfg_attr(feature = "v2_44", deprecated = "Since 2.44")]
pub use super::pixbuf_animation::PixbufAnimationExt;
pub use super::pixbuf_loader::PixbufLoaderExt;
}
19 changes: 19 additions & 0 deletions gdk-pixbuf/src/auto/pixbuf_animation.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
#![allow(deprecated)]

use crate::{ffi, Pixbuf};
use glib::{prelude::*, translate::*};
Expand All @@ -18,6 +19,8 @@ glib::wrapper! {
impl PixbufAnimation {
pub const NONE: Option<&'static PixbufAnimation> = None;

#[cfg_attr(feature = "v2_44", deprecated = "Since 2.44")]
#[allow(deprecated)]
#[doc(alias = "gdk_pixbuf_animation_new_from_file")]
#[doc(alias = "new_from_file")]
pub fn from_file(
Expand All @@ -37,6 +40,8 @@ impl PixbufAnimation {
}
}

#[cfg_attr(feature = "v2_44", deprecated = "Since 2.44")]
#[allow(deprecated)]
#[doc(alias = "gdk_pixbuf_animation_new_from_resource")]
#[doc(alias = "new_from_resource")]
pub fn from_resource(resource_path: &str) -> Result<PixbufAnimation, glib::Error> {
Expand All @@ -54,6 +59,8 @@ impl PixbufAnimation {
}
}

#[cfg_attr(feature = "v2_44", deprecated = "Since 2.44")]
#[allow(deprecated)]
#[doc(alias = "gdk_pixbuf_animation_new_from_stream")]
#[doc(alias = "new_from_stream")]
pub fn from_stream(
Expand All @@ -75,6 +82,8 @@ impl PixbufAnimation {
}
}

#[cfg_attr(feature = "v2_44", deprecated = "Since 2.44")]
#[allow(deprecated)]
#[doc(alias = "gdk_pixbuf_animation_new_from_stream_async")]
#[doc(alias = "new_from_stream_async")]
pub fn from_stream_async<P: FnOnce(Result<PixbufAnimation, glib::Error>) + 'static>(
Expand Down Expand Up @@ -124,6 +133,8 @@ impl PixbufAnimation {
}
}

#[cfg_attr(feature = "v2_44", deprecated = "Since 2.44")]

pub fn from_stream_future(
stream: &(impl IsA<gio::InputStream> + Clone + 'static),
) -> Pin<Box_<dyn std::future::Future<Output = Result<PixbufAnimation, glib::Error>> + 'static>>
Expand All @@ -138,12 +149,16 @@ impl PixbufAnimation {
}

pub trait PixbufAnimationExt: IsA<PixbufAnimation> + 'static {
#[cfg_attr(feature = "v2_44", deprecated = "Since 2.44")]
#[allow(deprecated)]
#[doc(alias = "gdk_pixbuf_animation_get_height")]
#[doc(alias = "get_height")]
fn height(&self) -> i32 {
unsafe { ffi::gdk_pixbuf_animation_get_height(self.as_ref().to_glib_none().0) }
}

#[cfg_attr(feature = "v2_44", deprecated = "Since 2.44")]
#[allow(deprecated)]
#[doc(alias = "gdk_pixbuf_animation_get_static_image")]
#[doc(alias = "get_static_image")]
fn static_image(&self) -> Option<Pixbuf> {
Expand All @@ -154,12 +169,16 @@ pub trait PixbufAnimationExt: IsA<PixbufAnimation> + 'static {
}
}

#[cfg_attr(feature = "v2_44", deprecated = "Since 2.44")]
#[allow(deprecated)]
#[doc(alias = "gdk_pixbuf_animation_get_width")]
#[doc(alias = "get_width")]
fn width(&self) -> i32 {
unsafe { ffi::gdk_pixbuf_animation_get_width(self.as_ref().to_glib_none().0) }
}

#[cfg_attr(feature = "v2_44", deprecated = "Since 2.44")]
#[allow(deprecated)]
#[doc(alias = "gdk_pixbuf_animation_is_static_image")]
fn is_static_image(&self) -> bool {
unsafe {
Expand Down
10 changes: 10 additions & 0 deletions gdk-pixbuf/src/auto/pixbuf_simple_anim.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
#![allow(deprecated)]

use crate::{ffi, Pixbuf, PixbufAnimation};
use glib::{
Expand All @@ -20,25 +21,33 @@ glib::wrapper! {
}

impl PixbufSimpleAnim {
#[cfg_attr(feature = "v2_44", deprecated = "Since 2.44")]
#[allow(deprecated)]
#[doc(alias = "gdk_pixbuf_simple_anim_new")]
pub fn new(width: i32, height: i32, rate: f32) -> PixbufSimpleAnim {
unsafe { from_glib_full(ffi::gdk_pixbuf_simple_anim_new(width, height, rate)) }
}

#[cfg_attr(feature = "v2_44", deprecated = "Since 2.44")]
#[allow(deprecated)]
#[doc(alias = "gdk_pixbuf_simple_anim_add_frame")]
pub fn add_frame(&self, pixbuf: &Pixbuf) {
unsafe {
ffi::gdk_pixbuf_simple_anim_add_frame(self.to_glib_none().0, pixbuf.to_glib_none().0);
}
}

#[cfg_attr(feature = "v2_44", deprecated = "Since 2.44")]
#[allow(deprecated)]
#[doc(alias = "gdk_pixbuf_simple_anim_get_loop")]
#[doc(alias = "get_loop")]
#[doc(alias = "loop")]
pub fn is_loop(&self) -> bool {
unsafe { from_glib(ffi::gdk_pixbuf_simple_anim_get_loop(self.to_glib_none().0)) }
}

#[cfg_attr(feature = "v2_44", deprecated = "Since 2.44")]
#[allow(deprecated)]
#[doc(alias = "gdk_pixbuf_simple_anim_set_loop")]
#[doc(alias = "loop")]
pub fn set_loop(&self, loop_: bool) {
Expand All @@ -47,6 +56,7 @@ impl PixbufSimpleAnim {
}
}

#[cfg_attr(feature = "v2_44", deprecated = "Since 2.44")]
#[doc(alias = "loop")]
pub fn connect_loop_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_loop_trampoline<F: Fn(&PixbufSimpleAnim) + 'static>(
Expand Down
4 changes: 2 additions & 2 deletions gdk-pixbuf/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 @ d9a99899e425)
from gir-files (https://github.com/gtk-rs/gir-files @ 1490bcc19dc8)
Generated by gir (https://github.com/gtk-rs/gir @ 1d0088ebcb66)
from gir-files (https://github.com/gtk-rs/gir-files @ 6715d605e539)
1 change: 1 addition & 0 deletions gdk-pixbuf/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pub use glib;

#[allow(clippy::too_many_arguments)]
#[allow(unused_imports)]
#[allow(clippy::empty_line_after_outer_attr)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is fixed now :)

mod auto;

pub mod subclass;
Expand Down
Loading
Loading