[package] name = "cairo-rs" keywords = ["cairo", "gtk-rs", "gnome", "GUI"] readme = "README.md" documentation = "https://gtk-rs.org/gtk-rs-core/stable/latest/docs/cairo/" description = "Rust bindings for the Cairo library" authors.workspace = true edition.workspace = true exclude.workspace = true homepage.workspace = true license.workspace = true repository.workspace = true rust-version.workspace = true version.workspace = true [lib] name = "cairo" [features] png = ["cairo-sys-rs/png"] pdf = ["cairo-sys-rs/pdf"] svg = ["cairo-sys-rs/svg"] ps = ["cairo-sys-rs/ps"] use_glib = ["glib", "cairo-sys-rs/use_glib"] v1_16 = ["cairo-sys-rs/v1_16"] v1_18 = ["v1_16", "cairo-sys-rs/v1_18"] default = ["use_glib"] freetype = ["cairo-sys-rs/freetype", "freetype-rs"] script = ["cairo-sys-rs/script"] xcb = ["cairo-sys-rs/xcb"] xlib = ["cairo-sys-rs/xlib"] win32-surface = ["cairo-sys-rs/win32-surface"] [dependencies.glib] optional = true workspace = true [dependencies] cairo-sys-rs.workspace = true libc.workspace = true bitflags.workspace = true freetype-rs = { version = "0.37", optional = true } [dev-dependencies] tempfile = "3.10" float_eq = "1" [package.metadata.docs.rs] all-features = true rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]