---
title: "glib 0.22.0 Breaking Changes on crates.io | Since.dev"
description: "What each glib release removed, renamed or changed: 275 breaking changes in 4 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/glib
last_updated: 2026-12-04
---

# glib breaking changes

glib 0.22.0 (February 20, 2026) is its newest release with breaking changes, 54 of them. The first: Removed glib::source::unix_fd_add. Every breaking API change we have recorded in glib on crates.io: 275 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.22.11`, released November 14, 2026. [Source repository](https://github.com/gtk-rs/gtk-rs-core)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [0.19.0](#v-0-19-0) to [0.22.0](#v-0-22-0): 143 breaking changes in 3 versions.

## glib 0.22.0 breaking changes

glib 0.22.0, released February 20, 2026: 54 breaking changes.

- **Removed** `glib::source::unix_fd_add`  

glib::source::unix_fd_add was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::source::unix_fd_add_full`  

glib::source::unix_fd_add_full was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::source::unix_fd_add_local`  

glib::source::unix_fd_add_local was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::source::unix_fd_add_local_full`  

glib::source::unix_fd_add_local_full was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::source::unix_fd_source_new`  

glib::source::unix_fd_source_new was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::source::unix_signal_add`  

glib::source::unix_signal_add was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::source::unix_signal_add_local`  

glib::source::unix_signal_add_local was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::source::unix_signal_add_local_once`  

glib::source::unix_signal_add_local_once was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::source::unix_signal_add_once`  

glib::source::unix_signal_add_once was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::source::unix_signal_source_new`  

glib::source::unix_signal_source_new was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::unix_fd_add`  

glib::unix_fd_add was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::unix_fd_add_full`  

glib::unix_fd_add_full was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::unix_fd_add_local`  

glib::unix_fd_add_local was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::unix_fd_add_local_full`  

glib::unix_fd_add_local_full was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::unix_fd_source_new`  

glib::unix_fd_source_new was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::unix_open_pipe`  

glib::unix_open_pipe was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::unix_signal_add`  

glib::unix_signal_add was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::unix_signal_add_local`  

glib::unix_signal_add_local was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::unix_signal_add_local_once`  

glib::unix_signal_add_local_once was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::unix_signal_add_once`  

glib::unix_signal_add_once was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::unix_signal_future`  

glib::unix_signal_future was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::unix_signal_future_with_priority`  

glib::unix_signal_future_with_priority was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::unix_signal_source_new`  

glib::unix_signal_source_new was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::unix_signal_stream`  

glib::unix_signal_stream was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::unix_signal_stream_with_priority`  

glib::unix_signal_stream_with_priority was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::win32_check_windows_version`  

glib::win32_check_windows_version was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::win32_command_line`  

glib::win32_command_line was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::win32_error_message`  

glib::win32_error_message was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::win32_getlocale`  

glib::win32_getlocale was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::win32_package_installation_directory_of_module`  

glib::win32_package_installation_directory_of_module was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Removed** `glib::Win32OSType`  

glib::Win32OSType was removed in glib 0.22.0 [crates.io](https://crates.io/crates/glib/0.22.0)
- **Renamed** `BindingBuilder`  

The binding_group transform functions were renamed to with_value, so callers must switch to the new name. [github.com](https://github.com/gtk-rs/gtk-rs-core/releases/tag/0.22.0)
- **Renamed** `push_thread_default`  

The push_thread_default function was renamed in this release, so code calling the old name must be updated to the new name. [github.com](https://github.com/gtk-rs/gtk-rs-core/releases/tag/0.22.0)
- **Configuration changed**  

The minimum supported Rust toolchain is now 1.92, so older compilers can no longer build the crate. [github.com](https://github.com/gtk-rs/gtk-rs-core/releases/tag/0.22.0)
- **Signature changed** `File.replace_contents_async`  

The etag argument of replace_contents_async is now optional, so its call signature changed for existing callers. [github.com](https://github.com/gtk-rs/gtk-rs-core/releases/tag/0.22.0)
- **Signature changed** `g_closefrom`  

g_closefrom must now be called inside an unsafe block, so existing callers need to add one. [github.com](https://github.com/gtk-rs/gtk-rs-core/releases/tag/0.22.0)
- **Signature changed** `glib::BindingGroupBuilder`  

Was struct BindingGroupBuilder<'a>; now struct BindingGroupBuilder<'a, 'f, 't>. [crates.io](https://crates.io/crates/glib/0.22.0)
- **Signature changed** `glib::BindingGroupBuilder::bidirectional`  

Was fn bidirectional(mut self) -> Self; now fn bidirectional(mut self) -> Self. [crates.io](https://crates.io/crates/glib/0.22.0)
- **Signature changed** `glib::BindingGroupBuilder::flags`  

Was fn flags(self, flags: BindingFlags) -> Self; now fn flags(self, flags: BindingFlags) -> Self. [crates.io](https://crates.io/crates/glib/0.22.0)
- **Signature changed** `glib::BindingGroupBuilder::invert_boolean`  

Was fn invert_boolean(mut self) -> Self; now fn invert_boolean(mut self) -> Self. [crates.io](https://crates.io/crates/glib/0.22.0)
- **Signature changed** `glib::BindingGroupBuilder::sync_create`  

Was fn sync_create(mut self) -> Self; now fn sync_create(mut self) -> Self. [crates.io](https://crates.io/crates/glib/0.22.0)
- **Signature changed** `glib::BindingGroupBuilder::transform_from`  

Was fn transform_from\<F: Fn(&Binding, &Value) -> Option\<Value> + Send + Sync + 'static>(self, func: F) -> Self; now fn transform_from\<S: FromValue<'f>, T: Into\<Value>, F: Fn(&'f Binding, S) -> Option\<T> + Send + Sync + 'static>(self, func... [crates.io](https://crates.io/crates/glib/0.22.0)
- **Signature changed** `glib::BindingGroupBuilder::transform_to`  

Was fn transform_to\<F: Fn(&Binding, &Value) -> Option\<Value> + Send + Sync + 'static>(self, func: F) -> Self; now fn transform_to\<S: FromValue<'t>, T: Into\<Value>, F: Fn(&'t Binding, S) -> Option\<T> + Send + Sync + 'static>(self, func: F)... [crates.io](https://crates.io/crates/glib/0.22.0)
- **Signature changed** `glib::enums::EnumValue::name`  

Was fn name(&self) -> &str; now fn name<'a>(&self) -> &'a str. [crates.io](https://crates.io/crates/glib/0.22.0)
- **Signature changed** `glib::enums::EnumValue::nick`  

Was fn nick(&self) -> &str; now fn nick<'a>(&self) -> &'a str. [crates.io](https://crates.io/crates/glib/0.22.0)
- **Signature changed** `glib::enums::FlagsValue::name`  

Was fn name(&self) -> &str; now fn name<'a>(&self) -> &'a str. [crates.io](https://crates.io/crates/glib/0.22.0)
- **Signature changed** `glib::enums::FlagsValue::nick`  

Was fn nick(&self) -> &str; now fn nick<'a>(&self) -> &'a str. [crates.io](https://crates.io/crates/glib/0.22.0)
- **Signature changed** `glib::EnumValue::name`  

Was fn name(&self) -> &str; now fn name<'a>(&self) -> &'a str. [crates.io](https://crates.io/crates/glib/0.22.0)
- **Signature changed** `glib::EnumValue::nick`  

Was fn nick(&self) -> &str; now fn nick<'a>(&self) -> &'a str. [crates.io](https://crates.io/crates/glib/0.22.0)
- **Signature changed** `glib::FlagsValue::name`  

Was fn name(&self) -> &str; now fn name<'a>(&self) -> &'a str. [crates.io](https://crates.io/crates/glib/0.22.0)

And 4 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## glib 0.21.0 breaking changes

glib 0.21.0, released July 15, 2025: 50 breaking changes.

- **Removed**  

Previously deprecated APIs were removed in this release; code still using them must be updated. [github.com](https://github.com/gtk-rs/gtk-rs-core/releases/tag/0.21.0)
- **Removed** `glib::ExitCode::value`  

glib::ExitCode::value was removed in glib 0.21.0 [crates.io](https://crates.io/crates/glib/0.21.0)
- **Removed** `glib::GStringPtr::to_str`  

Use as_str instead. [crates.io](https://crates.io/crates/glib/0.21.0)
- **Removed** `glib::object::SendWeakRef::new`  

glib::object::SendWeakRef::new was removed in glib 0.21.0 [crates.io](https://crates.io/crates/glib/0.21.0)
- **Removed** `glib::SendWeakRef::new`  

glib::SendWeakRef::new was removed in glib 0.21.0 [crates.io](https://crates.io/crates/glib/0.21.0)
- **Removed** `glib::subclass::interface::ObjectInterfaceExt::from_instance`  

Use from_obj instead. [crates.io](https://crates.io/crates/glib/0.21.0)
- **Removed** `glib::subclass::prelude::ObjectInterfaceExt::from_instance`  

Use from_obj instead. [crates.io](https://crates.io/crates/glib/0.21.0)
- **Removed** `glib::subclass::prelude::ObjectSubclassExt::from_instance`  

Use from_obj instead. [crates.io](https://crates.io/crates/glib/0.21.0)
- **Removed** `glib::subclass::prelude::ObjectSubclassExt::instance`  

Use obj instead. [crates.io](https://crates.io/crates/glib/0.21.0)
- **Removed** `glib::subclass::types::ObjectSubclassExt::from_instance`  

Use from_obj instead. [crates.io](https://crates.io/crates/glib/0.21.0)

And 40 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## glib 0.20.0 breaking changes

glib 0.20.0, released July 10, 2024: 39 breaking changes.

- **Removed** `DBusConnection.register_object`  

The generated register_object binding is ignored now; register DBus objects with the builder instead. [github.com](https://github.com/gtk-rs/gtk-rs-core/releases/tag/0.20.0)
- **Removed** `File.copy_async_with_closures`  

File::copy_async_with_closures is no longer generated and cannot be used from this release. [github.com](https://github.com/gtk-rs/gtk-rs-core/releases/tag/0.20.0)
- **Removed** `File.move_async_with_closures`  

File::move_async_with_closures is no longer generated and cannot be used from this release. [github.com](https://github.com/gtk-rs/gtk-rs-core/releases/tag/0.20.0)
- **Removed** `gio.prelude`  

Code that relied on the gio prelude to bring in types must import those types directly. [github.com](https://github.com/gtk-rs/gtk-rs-core/releases/tag/0.20.0)
- **Removed** `glib::subclass::TypeData::parent_ifaces`  

glib::subclass::TypeData::parent_ifaces was removed in glib 0.20.0 [crates.io](https://crates.io/crates/glib/0.20.0)
- **Removed** `glib::subclass::TypeData::private_imp_offset`  

glib::subclass::TypeData::private_imp_offset was removed in glib 0.20.0 [crates.io](https://crates.io/crates/glib/0.20.0)
- **Removed** `glib::subclass::TypeData::private_offset`  

glib::subclass::TypeData::private_offset was removed in glib 0.20.0 [crates.io](https://crates.io/crates/glib/0.20.0)
- **Removed** `glib::subclass::types::INIT_TYPE_DATA`  

glib::subclass::types::INIT_TYPE_DATA was removed in glib 0.20.0 [crates.io](https://crates.io/crates/glib/0.20.0)
- **Removed** `glib::subclass::types::TypeData::parent_ifaces`  

glib::subclass::types::TypeData::parent_ifaces was removed in glib 0.20.0 [crates.io](https://crates.io/crates/glib/0.20.0)
- **Removed** `glib::subclass::types::TypeData::private_imp_offset`  

glib::subclass::types::TypeData::private_imp_offset was removed in glib 0.20.0 [crates.io](https://crates.io/crates/glib/0.20.0)

And 29 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## glib 0.19.0 breaking changes

glib 0.19.0, released February 4, 2024: 132 breaking changes.

- **Removed**  

The deprecated ParamSpec constructors were removed. Code using them must switch to the remaining constructors. [github.com](https://github.com/gtk-rs/gtk-rs-core/releases/tag/0.19.0)
- **Removed** `glib::access`  

glib::access was removed in glib 0.19.0 [crates.io](https://crates.io/crates/glib/0.19.0)
- **Removed** `glib::application_name`  

glib::application_name was removed in glib 0.19.0 [crates.io](https://crates.io/crates/glib/0.19.0)
- **Removed** `glib::base64_decode`  

glib::base64_decode was removed in glib 0.19.0 [crates.io](https://crates.io/crates/glib/0.19.0)
- **Removed** `glib::base64_encode`  

glib::base64_encode was removed in glib 0.19.0 [crates.io](https://crates.io/crates/glib/0.19.0)
- **Removed** `glib::Cast`  

glib::Cast was removed in glib 0.19.0 [crates.io](https://crates.io/crates/glib/0.19.0)
- **Removed** `glib::CastNone`  

glib::CastNone was removed in glib 0.19.0 [crates.io](https://crates.io/crates/glib/0.19.0)
- **Removed** `glib::check_version`  

glib::check_version was removed in glib 0.19.0 [crates.io](https://crates.io/crates/glib/0.19.0)
- **Removed** `glib::check_windows_version`  

glib::check_windows_version was removed in glib 0.19.0 [crates.io](https://crates.io/crates/glib/0.19.0)
- **Removed** `glib::codeset`  

glib::codeset was removed in glib 0.19.0 [crates.io](https://crates.io/crates/glib/0.19.0)

And 122 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Related packages

- [gdk-pixbuf](https://since.dev/packages/crates/gdk-pixbuf.md)
- [cairo-rs](https://since.dev/packages/crates/cairo-rs.md)
- [gio](https://since.dev/packages/crates/gio.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
