24 releases

Uses old Rust 2015

0.9.1 Jul 10, 2020
0.8.1 Feb 16, 2020
0.8.0 Dec 14, 2019
0.7.1 Jul 4, 2019
0.0.4 Jul 18, 2015

#3 in Graphics APIs

Download history 4350/week @ 2020-12-25 6084/week @ 2021-01-01 7005/week @ 2021-01-08 5559/week @ 2021-01-15 5119/week @ 2021-01-22 6418/week @ 2021-01-29 6793/week @ 2021-02-05 7122/week @ 2021-02-12 7182/week @ 2021-02-19 6564/week @ 2021-02-26 5951/week @ 2021-03-05 6805/week @ 2021-03-12 5828/week @ 2021-03-19 6073/week @ 2021-03-26 6346/week @ 2021-04-02 5582/week @ 2021-04-09

25,402 downloads per month
Used in 195 crates (66 directly)

MIT and maybe LGPL-2.0

325KB
9K SLoC

cairo Build Status Build status Gitter

Cairo bindings for Rust.

screenshot

License

MIT


lib.rs:

Cairo bindings

This library contains safe Rust bindings for Cairo. It is a part of Gtk-rs.

Crate features

Default-on features

  • use_glib - Use with glib

Fileformat features

  • png - Reading and writing PNG images
  • pdf - Rendering PDF documents
  • svg - Rendering SVG documents
  • ps - Rendering PostScript documents

Cairo API version features

  • v1_14 - Use Cairo 1.14 APIs
  • v1_16 - Use Cairo 1.16 APIs

Documentation features

  • embed-lgpl-docs - Embed API docs locally
  • purge-lgpl-docs - Remove API docs again (counterpart to embed-lgpl-docs)
  • dox - Used to keep system dependent items in documentation

X Window features

  • xcb - X Window System rendering using the XCB library
  • xlib - X Window System rendering using XLib

Windows API features

  • win32-surface - Microsoft Windows surface support

Dependencies

~1.2–2.5MB
~50K SLoC