# 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" name = "piet-common" version = "0.7.0-cairo18" authors = ["Raph Levien "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Selection of a single preferred back-end for piet" readme = "README.md" keywords = [ "graphics", "2d", ] license = "Apache-2.0 OR MIT" repository = "https://github.com/linebender/piet" [lib] name = "piet_common" path = "src/lib.rs" [[example]] name = "mondrian" path = "examples/mondrian.rs" [[test]] name = "image" path = "tests/image.rs" [[test]] name = "text" path = "tests/text.rs" [dependencies.cfg-if] version = "1.0.0" [dependencies.piet] version = "=0.7.0-cairo18" [dependencies.piet-web] version = "=0.7.0-cairo18" optional = true [dependencies.png] version = "0.17.14" optional = true [dev-dependencies.rand] version = "0.8.5" [dev-dependencies.rand_distr] version = "0.4.3" [dev-dependencies.static_assertions] version = "1.1.0" [features] bmp = ["piet/bmp"] dds = ["piet/dds"] gif = ["piet/gif"] hdr = ["piet/hdr"] ico = ["piet/ico"] image = ["piet/image"] image_png = ["piet/image_png"] jpeg = ["piet/jpeg"] pnm = ["piet/pnm"] serde = ["piet/serde"] tga = ["piet/tga"] tiff = ["piet/tiff"] web = ["piet-web"] webp = ["piet/webp"] [target.'cfg(any(target_os="linux", target_os="openbsd", target_os="freebsd", target_os="netbsd"))'.dependencies.cairo-rs] version = "0.18.5" default-features = false [target.'cfg(any(target_os="linux", target_os="openbsd", target_os="freebsd", target_os="netbsd"))'.dependencies.cairo-sys-rs] version = "0.18.2" [target.'cfg(any(target_os="linux", target_os="openbsd", target_os="freebsd", target_os="netbsd"))'.dependencies.piet-cairo] version = "=0.7.0-cairo18" [target.'cfg(any(target_os="macos", target_os="ios"))'.dependencies.core-graphics] version = "0.24.0" [target.'cfg(any(target_os="macos", target_os="ios"))'.dependencies.piet-coregraphics] version = "=0.7.0-cairo18" [target.'cfg(target_arch="wasm32")'.dependencies.piet-web] version = "=0.7.0-cairo18" [target.'cfg(target_arch="wasm32")'.dependencies.wasm-bindgen] version = "0.2.95" [target.'cfg(target_arch="wasm32")'.dependencies.web-sys] version = "0.3.72" features = [ "console", "Window", "CanvasGradient", "CanvasRenderingContext2d", "CanvasWindingRule", "Document", "Element", "HtmlCanvasElement", "ImageBitmap", "ImageData", "TextMetrics", ] [target.'cfg(target_arch="wasm32")'.dev-dependencies.getrandom] version = "0.2.15" features = ["js"] [target.'cfg(target_arch="wasm32")'.dev-dependencies.wasm-bindgen-test] version = "0.3.45" [target.'cfg(target_os="windows")'.dependencies.piet-direct2d] version = "=0.7.0-cairo18"