Registry / other / cairo-sys-rs

cairo-sys-rs

JSON →
library0.22.0rscratesunverified

FFI bindings to libcairo, providing low-level access to the Cairo graphics library.

# Cargo.toml [dependencies] cairo-sys-rs = "0.22.0"
INSTALL
IMPORT
SIG · CAIRO-SYS-RS
C
cairo-sys-rs
otherrustv0.22.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cairo_surface_t
✓ use cairo_sys;

Provides raw FFI bindings to the Cairo graphics library.

use cairo_sys::cairo_surface_t; fn main() { // Example: creating a surface requires libcairo installed let surface: *mut cairo_surface_t = std::ptr::null_mut(); println!("Surface pointer: {:?}", surface); }
Debug
Known issues
gotchaRequires libcairo development headers installed on the system.
fix
Install libcairo2-dev (Debian/Ubuntu) or cairo-devel (Fedora).
affects: >=0.1.0
Upgrade
Version history
0.22.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
cairo-sys-rs — cargo add cairo-sys-rs · libregistry