Registry / other / cairo-rs

cairo-rs

JSON →
library0.22.0rscratesunverified

Rust bindings for the Cairo 2D graphics library.

# Cargo.toml [dependencies] cairo-rs = "0.22.0"
INSTALL
IMPORT
SIG · CAIRO-RS
C
cairo-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.

Context
use cairo::Context;

Creates a Cairo drawing context on an image surface.

use cairo::Context; let surface = cairo::ImageSurface::create(cairo::Format::ARgb32, 100, 100).unwrap(); let ctx = Context::new(&surface);
Debug
Known issues
gotchaRequires the Cairo C library and development headers installed on the system
fix
Install libcairo2-dev (Debian/Ubuntu) or cairo-devel (Fedora)
affects: *
Upgrade
Version history
0.22.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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