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
On this page
Latest version 0.22.11, released November 14, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
cairo-rs 0.22.0 breaking changes
- Configuration changed
The minimum supported Rust version was raised to 1.92. github.com - Signature changed
Write-to-stream callbacks should accept const pointers to data, so custom callbacks may need their signatures updated. github.com - 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
cairo-rs 0.21.0 breaking changes
- Removed
Deprecated API was removed in this release. Code still using it must be updated. github.com - Behavior changed
The minimum supported Rust version is now 1.80. Older compilers can no longer build the package. github.com - Signature changed
Impl traits gained an IsA<Object> trait bound. Implementers may need to satisfy the new bound. github.com - Signature changed
subprocess_launcher functions now take owned file descriptors. Update callers to pass owned fds. github.com
cairo-rs 0.20.0 breaking changes
- Signature changed
cairo::Context
Was struct Context(ptr::NonNull<cairo_t>); now struct Context(ptr::NonNull<ffi::cairo_t>). crates.io - Signature changed
cairo::ffi
Was pub use ffi; now pub use cairo_sys. crates.io - Signature changed
cairo::Path
Was struct Path(ptr::NonNull<cairo_path_t>); now struct Path(ptr::NonNull<ffi::cairo_path_t>). crates.io - 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 - 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 - 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 - 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 - 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 - Signature changed
cairo::Region
Was struct Region(ptr::NonNull<cairo_region_t>); now struct Region(ptr::NonNull<ffi::cairo_region_t>). crates.io
cairo-rs 0.19.0 breaking changes
- Removed
The previously deprecated glib ParamSpec constructors were removed in this release. github.com - Removed
MainContext.channel
The MainContext::channel() function was removed from glib in this release. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.