Debian Codegraph @

debian/missing-sources/cairo-rs/README.md

raw symbols SCIP
1 # Cairo bindings
2
3 __Rust__ bindings for Rust and wrappers for [Cairo](https://www.cairographics.org/), part of [gtk-rs-core](https://github.com/gtk-rs/gtk-rs-core).
4
5 ![screenshot](https://guillaume-gomez.fr/image/cairo.png)
6
7 Cairo __1.14__ is the lowest supported version for the underlying library.
8
9 ## Minimum supported Rust version
10
11 Currently, the minimum supported Rust version is `1.83.0`.
12
13 ## Default-on features
14
15 * **use_glib** - Use with [glib](mod@glib)
16
17 ## Fileformat features
18
19 * **png** - Reading and writing PNG images
20 * **pdf** - Rendering PDF documents
21 * **svg** - Rendering SVG documents
22 * **ps** - Rendering PostScript documents
23
24 ## Cairo API version features
25
26 * **v1_16** - Use Cairo 1.16 APIs
27
28 ## Documentation
29
30 * [Rust API - Stable](https://gtk-rs.org/gtk-rs-core/stable/latest/docs/cairo)
31 * [Rust API - Development](https://gtk-rs.org/gtk-rs-core/git/docs/cairo)
32 * [C API](https://www.cairographics.org/documentation/)
33
34 ## X Window features
35
36 * **xcb** - X Window System rendering using the XCB library
37 * **xlib** - X Window System rendering using XLib
38
39 ## Windows API features
40
41 * **win32-surface** - Microsoft Windows surface support
42
43 ## Using
44
45 We recommend using [crates from crates.io](https://crates.io/keywords/gtk-rs),
46 as [demonstrated here](https://gtk-rs.org/#using).
47
48 If you want to track the bleeding edge, use the git dependency instead:
49
50 ```toml
51 [dependencies]
52 cairo-rs = { git = "https://github.com/gtk-rs/gtk-rs-core.git", package = "cairo-rs" }
53 ```
54
55 Avoid mixing versioned and git crates like this:
56
57 ```toml
58 # This will not compile
59 [dependencies]
60 cairo-rs = "0.13"
61 cairo-rs = { git = "https://github.com/gtk-rs/gtk-rs-core.git", package = "cairo-rs" }
62 ```
63
64 ### See Also
65
66 * [glib](https://crates.io/crates/glib)
67
68 ## License
69
70 __cairo__ is available under the MIT License, please refer to it.