# 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.85"
name = "skia-safe"
version = "0.97.0"
authors = ["Armin Sander <armin@replicator.org>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Skia Bindings for Rust"
homepage = "https://github.com/rust-skia/rust-skia"
documentation = "https://rust-skia.github.io/doc/skia_safe"
readme = "README.md"
keywords = [
    "skia",
    "rust-bindings",
    "vulkan",
    "opengl",
    "pdf",
]
categories = [
    "api-bindings",
    "graphics",
    "multimedia::images",
    "rendering::graphics-api",
    "visualization",
]
license = "MIT"
repository = "https://github.com/rust-skia/rust-skia"

[features]
all-linux = [
    "gl",
    "egl",
    "vulkan",
    "x11",
    "wayland",
    "textlayout",
    "svg",
    "skottie",
    "webp",
]
all-macos = [
    "gl",
    "vulkan",
    "metal",
    "textlayout",
    "svg",
    "skottie",
    "webp",
]
all-windows = [
    "gl",
    "vulkan",
    "d3d",
    "textlayout",
    "svg",
    "skottie",
    "webp",
]
binary-cache = ["skia-bindings/binary-cache"]
d3d = [
    "gpu",
    "windows",
    "skia-bindings/d3d",
]
default = [
    "binary-cache",
    "embed-icudtl",
    "pdf",
    "jpeg",
]
egl = [
    "gl",
    "skia-bindings/egl",
]
embed-freetype = ["skia-bindings/embed-freetype"]
embed-icudtl = ["skia-bindings/embed-icudtl"]
freetype-woff2 = ["skia-bindings/freetype-woff2"]
gl = [
    "gpu",
    "skia-bindings/gl",
]
gpu = []
jpeg = ["skia-bindings/jpeg"]
metal = [
    "gpu",
    "skia-bindings/metal",
]
no-compile = ["skia-bindings/no-compile"]
pdf = [
    "skia-bindings/pdf",
    "jpeg",
]
save-svg-images = []
skottie = [
    "skia-bindings/skottie",
    "textlayout",
    "dep:base64",
    "dep:percent-encoding",
]
svg = [
    "skia-bindings/svg",
    "dep:base64",
    "dep:percent-encoding",
    "skia-svg-macros",
]
textlayout = ["skia-bindings/textlayout"]
ureq = ["dep:ureq"]
use-system-jpeg-turbo = ["skia-bindings/use-system-jpeg-turbo"]
vulkan = [
    "gpu",
    "skia-bindings/vulkan",
]
wayland = [
    "egl",
    "skia-bindings/wayland",
]
webp = [
    "webp-encode",
    "webp-decode",
]
webp-decode = ["skia-bindings/webp-decode"]
webp-encode = ["skia-bindings/webp-encode"]
x11 = [
    "gl",
    "skia-bindings/x11",
]

[lib]
name = "skia_safe"
path = "src/lib.rs"
doctest = false

[[example]]
name = "d3d-window"
path = "examples/d3d-window/main.rs"

[[example]]
name = "dotlottie"
path = "examples/dotlottie/main.rs"

[[example]]
name = "gl-window"
path = "examples/gl-window/main.rs"

[[example]]
name = "hello"
path = "examples/hello/main.rs"

[[example]]
name = "icon"
path = "examples/icon/main.rs"

[[example]]
name = "lottie"
path = "examples/lottie/main.rs"

[[example]]
name = "metal-window"
path = "examples/metal-window/main.rs"

[[example]]
name = "svg"
path = "examples/svg/main.rs"

[[example]]
name = "vulkan-window"
path = "examples/vulkan-window/main.rs"

[[test]]
name = "codec"
path = "tests/codec.rs"

[[test]]
name = "send_sync"
path = "tests/send_sync.rs"

[[test]]
name = "shaper"
path = "tests/shaper.rs"

[dependencies.base64]
version = "0.22.0"
optional = true

[dependencies.bitflags]
version = "2.0"

[dependencies.percent-encoding]
version = "2.3.1"
optional = true

[dependencies.skia-bindings]
version = "=0.97.0"
default-features = false

[dependencies.skia-svg-macros]
version = "0.1.0"
optional = true

[dependencies.ureq]
version = "3.0.4"
optional = true

[dependencies.windows]
version = "0.62.0"
features = [
    "Win32",
    "Win32_Graphics",
    "Win32_Graphics_Dxgi",
    "Win32_Graphics_Direct3D12",
    "Win32_Graphics_Direct3D",
    "Win32_Foundation",
    "Win32_Graphics_Dxgi_Common",
]
optional = true

[dev-dependencies.serde]
version = "1.0"
features = ["derive"]

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.serial_test]
version = "3.0"

[dev-dependencies.static_assertions]
version = "1.1"

[dev-dependencies.winit]
version = "0.30.2"

[dev-dependencies.zip]
version = "8.1"

[target.'cfg(all(not(target_os = "android"), not(target_os = "emscripten"), not(target_os = "ios")))'.dev-dependencies.ash]
version = "^0.38.0"

[target.'cfg(all(not(target_os = "android"), not(target_os = "emscripten"), not(target_os = "ios")))'.dev-dependencies.gl-rs]
version = "0.14.0"
package = "gl"

[target.'cfg(all(not(target_os = "android"), not(target_os = "emscripten"), not(target_os = "ios")))'.dev-dependencies.glutin]
version = "0.32.0"

[target.'cfg(all(not(target_os = "android"), not(target_os = "emscripten"), not(target_os = "ios")))'.dev-dependencies.glutin-winit]
version = "0.5.0"

[target.'cfg(all(not(target_os = "android"), not(target_os = "emscripten"), not(target_os = "ios")))'.dev-dependencies.raw-window-handle]
version = "0.6.0"

[target.'cfg(all(not(target_os = "android"), not(target_os = "emscripten"), not(target_os = "ios")))'.dev-dependencies.vulkano]
version = "0.35"

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dev-dependencies.objc2]
version = "0.6.3"
default-features = false

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dev-dependencies.objc2-core-foundation]
version = "0.3.2"
default-features = false

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dev-dependencies.objc2-metal]
version = "0.3.2"
features = [
    "MTLCommandBuffer",
    "MTLCommandQueue",
    "MTLDrawable",
    "MTLPixelFormat",
]
default-features = false

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dev-dependencies.objc2-quartz-core]
version = "0.3.2"
features = [
    "objc2-core-foundation",
    "objc2-metal",
    "CAMetalLayer",
]
default-features = false

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dev-dependencies.raw-window-handle]
version = "0.6.0"

[target.'cfg(target_os = "ios")'.dev-dependencies.objc2-ui-kit]
version = "0.3.2"
features = [
    "objc2-quartz-core",
    "UIView",
    "UIResponder",
]
default-features = false

[target.'cfg(target_os = "macos")'.dev-dependencies.objc2-app-kit]
version = "0.3.2"
features = [
    "objc2-quartz-core",
    "NSView",
    "NSResponder",
]
default-features = false

[target.'cfg(target_os = "windows")'.dev-dependencies.anyhow]
version = "1.0.75"

[target.'cfg(target_os = "windows")'.dev-dependencies.windows]
version = "0.62.0"
features = [
    "Win32",
    "Win32_Graphics",
    "Win32_Graphics_Dxgi",
    "Win32_Graphics_Direct3D12",
    "Win32_Graphics_Direct3D",
    "Win32_Foundation",
    "Win32_Graphics_Dxgi_Common",
]
