# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.70" name = "cairo-rs" version = "0.20.5" authors = ["The gtk-rs Project Developers"] build = false exclude = ["gir-files/*"] autobins = false autoexamples = false autotests = false autobenches = false description = "Rust bindings for the Cairo library" homepage = "https://gtk-rs.org/" documentation = "https://gtk-rs.org/gtk-rs-core/stable/latest/docs/cairo/" readme = "README.md" keywords = [ "cairo", "gtk-rs", "gnome", "GUI", ] license = "MIT" repository = "https://github.com/gtk-rs/gtk-rs-core" [package.metadata.docs.rs] all-features = true rustc-args = [ "--cfg", "docsrs", ] rustdoc-args = [ "--cfg", "docsrs", "--generate-link-to-definition", ] [lib] name = "cairo" path = "src/lib.rs" [dependencies.bitflags] version = "2.6" [dependencies.cairo-sys-rs] version = "0.20" [dependencies.freetype-rs] version = "0.37" optional = true [dependencies.glib] version = "0.20.3" optional = true [dependencies.libc] version = "0.2" [dev-dependencies.float_eq] version = "1" [dev-dependencies.tempfile] version = "3.10" [features] default = ["use_glib"] freetype = [ "cairo-sys-rs/freetype", "freetype-rs", ] pdf = ["cairo-sys-rs/pdf"] png = ["cairo-sys-rs/png"] ps = ["cairo-sys-rs/ps"] script = ["cairo-sys-rs/script"] svg = ["cairo-sys-rs/svg"] use_glib = [ "glib", "cairo-sys-rs/use_glib", ] v1_16 = ["cairo-sys-rs/v1_16"] v1_18 = [ "v1_16", "cairo-sys-rs/v1_18", ] win32-surface = ["cairo-sys-rs/win32-surface"] xcb = ["cairo-sys-rs/xcb"] xlib = ["cairo-sys-rs/xlib"]