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

# cairo-rs breaking changes

cairo-rs 0.22.0 (February 20, 2026) is its newest release with breaking changes, 3 of them. The first: Raises the minimum supported Rust version to 1.92 in cairo-rs 0.22.0. Every breaking API change we have recorded in cairo-rs on crates.io: 18 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): 16 breaking changes in 3 versions.

## cairo-rs 0.22.0 breaking changes

cairo-rs 0.22.0, released February 20, 2026: 3 breaking changes.

- **Configuration changed**  

The minimum supported Rust version was raised to 1.92. [github.com](https://github.com/gtk-rs/gtk-rs-core/releases/tag/0.22.0)
- **Signature changed**  

Write-to-stream callbacks should accept const pointers to data, so custom callbacks may need their signatures updated. [github.com](https://github.com/gtk-rs/gtk-rs-core/releases/tag/0.22.0)
- **Signature changed** `cairo_script_create_for_stream`  

The return type of cairo_script_create_for_stream changed, so bindings using the old type must be updated. [github.com](https://github.com/gtk-rs/gtk-rs-core/releases/tag/0.22.0)

## cairo-rs 0.21.0 breaking changes

cairo-rs 0.21.0, released July 15, 2025: 4 breaking changes.

- **Removed**  

Deprecated API was removed in this release. Code still using it must be updated. [github.com](https://github.com/gtk-rs/gtk-rs-core/releases/tag/0.21.0)
- **Behavior changed**  

The minimum supported Rust version is now 1.80. Older compilers can no longer build the package. [github.com](https://github.com/gtk-rs/gtk-rs-core/releases/tag/0.21.0)
- **Signature changed**  

Impl traits gained an IsA\<Object> trait bound. Implementers may need to satisfy the new bound. [github.com](https://github.com/gtk-rs/gtk-rs-core/releases/tag/0.21.0)
- **Signature changed**  

subprocess_launcher functions now take owned file descriptors. Update callers to pass owned fds. [github.com](https://github.com/gtk-rs/gtk-rs-core/releases/tag/0.21.0)

## cairo-rs 0.20.0 breaking changes

cairo-rs 0.20.0, released July 10, 2024: 9 breaking changes.

- **Signature changed** `cairo::Context`  

Was struct Context(ptr::NonNull\<cairo_t>); now struct Context(ptr::NonNull\<ffi::cairo_t>). [crates.io](https://crates.io/crates/cairo-rs/0.20.0)
- **Signature changed** `cairo::ffi`  

Was pub use ffi; now pub use cairo_sys. [crates.io](https://crates.io/crates/cairo-rs/0.20.0)
- **Signature changed** `cairo::Path`  

Was struct Path(ptr::NonNull\<cairo_path_t>); now struct Path(ptr::NonNull\<ffi::cairo_path_t>). [crates.io](https://crates.io/crates/cairo-rs/0.20.0)
- **Signature changed** `cairo::Path::as_ptr`  

Was fn as_ptr(&self) -> \*mut cairo_path_t; now fn as_ptr(&self) -> \*mut ffi::cairo_path_t. [crates.io](https://crates.io/crates/cairo-rs/0.20.0)
- **Signature changed** `cairo::Path::from_raw_full`  

Was unsafe fn from_raw_full(pointer: \*mut cairo_path_t) -> Path; now unsafe fn from_raw_full(pointer: \*mut ffi::cairo_path_t) -> Path. [crates.io](https://crates.io/crates/cairo-rs/0.20.0)
- **Signature changed** `cairo::Pattern::from_raw_full`  

Was unsafe fn from_raw_full(pointer: \*mut cairo_pattern_t) -> Pattern; now unsafe fn from_raw_full(pointer: \*mut ffi::cairo_pattern_t) -> Pattern. [crates.io](https://crates.io/crates/cairo-rs/0.20.0)
- **Signature changed** `cairo::Pattern::from_raw_none`  

Was unsafe fn from_raw_none(pointer: \*mut cairo_pattern_t) -> Pattern; now unsafe fn from_raw_none(pointer: \*mut ffi::cairo_pattern_t) -> Pattern. [crates.io](https://crates.io/crates/cairo-rs/0.20.0)
- **Signature changed** `cairo::Pattern::to_raw_none`  

Was fn to_raw_none(&self) -> \*mut cairo_pattern_t; now fn to_raw_none(&self) -> \*mut ffi::cairo_pattern_t. [crates.io](https://crates.io/crates/cairo-rs/0.20.0)
- **Signature changed** `cairo::Region`  

Was struct Region(ptr::NonNull\<cairo_region_t>); now struct Region(ptr::NonNull\<ffi::cairo_region_t>). [crates.io](https://crates.io/crates/cairo-rs/0.20.0)

## cairo-rs 0.19.0 breaking changes

cairo-rs 0.19.0, released February 4, 2024: 2 breaking changes.

- **Removed**  

The previously deprecated glib ParamSpec constructors were removed in this release. [github.com](https://github.com/gtk-rs/gtk-rs-core/releases/tag/0.19.0)
- **Removed** `MainContext.channel`  

The MainContext::channel() function was removed from glib in this release. [github.com](https://github.com/gtk-rs/gtk-rs-core/releases/tag/0.19.0)

## Related packages

- [gdk-pixbuf](https://since.dev/packages/crates/gdk-pixbuf.md)
- [gio](https://since.dev/packages/crates/gio.md)
- [glib](https://since.dev/packages/crates/glib.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.
