# 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 = "2018"
name = "surfman"
version = "0.7.2"
authors = [
    "Patrick Walton <pcwalton@mimiga.net>",
    "Emilio Cobos Álvarez <emilio@crisal.io>",
    "The Servo Project Developers",
]
build = "build.rs"
description = "A cross-platform, low-level toolkit for GPU surface management"
license = "MIT OR Apache-2.0"
repository = "https://github.com/servo/surfman"

[dependencies.bitflags]
version = "1.1"

[dependencies.euclid]
version = "0.22"
features = []

[dependencies.lazy_static]
version = "1"

[dependencies.libc]
version = "0.2"

[dependencies.log]
version = "0.4"

[dependencies.osmesa-sys]
version = "0.1"
optional = true

[dependencies.raw-window-handle]
version = "0.5"
optional = true

[dependencies.winit]
version = "0.28.1"
optional = true

[dev-dependencies.clap]
version = "2"

[dev-dependencies.gl]
version = "0.14"

[dev-dependencies.png]
version = "0.17"

[dev-dependencies.rand]
version = "0.8"

[build-dependencies.cfg_aliases]
version = "0.1.0"

[build-dependencies.gl_generator]
version = "0.14"

[features]
default = [
    "sm-winit",
    "sm-raw-window-handle",
]
sm-angle = []
sm-angle-builtin = ["mozangle"]
sm-angle-default = ["sm-angle"]
sm-no-wgl = ["sm-angle-default"]
sm-raw-window-handle = ["raw-window-handle"]
sm-test = []
sm-wayland-default = []
sm-winit = ["winit"]
sm-x11 = ["x11"]

[target."cfg(all(unix, not(any(target_os = \"macos\", target_os = \"android\"))))".dependencies.wayland-sys]
version = "0.30"
features = [
    "client",
    "dlopen",
    "egl",
]

[target."cfg(all(unix, not(any(target_os = \"macos\", target_os = \"android\"))))".dependencies.x11]
version = "2.3.0"
features = ["xlib"]
optional = true

[target."cfg(target_os = \"android\")".dependencies.raw-window-handle]
version = "0.5"

[target."cfg(target_os = \"android\")".dependencies.winit]
version = "0.28.1"
features = ["android-native-activity"]

[target."cfg(target_os = \"macos\")".dependencies.cgl]
version = "0.3.2"

[target."cfg(target_os = \"macos\")".dependencies.cocoa]
version = "0.24"

[target."cfg(target_os = \"macos\")".dependencies.core-foundation]
version = "0.9"

[target."cfg(target_os = \"macos\")".dependencies.core-graphics]
version = "0.22"

[target."cfg(target_os = \"macos\")".dependencies.io-surface]
version = "0.15"

[target."cfg(target_os = \"macos\")".dependencies.mach]
version = "0.3"

[target."cfg(target_os = \"macos\")".dependencies.metal]
version = "0.24"

[target."cfg(target_os = \"macos\")".dependencies.objc]
version = "0.2"

[target."cfg(target_os = \"macos\")".dependencies.servo-display-link]
version = "0.2"

[target."cfg(target_os = \"windows\")".dependencies.mozangle]
version = "0.3"
features = [
    "egl",
    "build_dlls",
]
optional = true

[target."cfg(target_os = \"windows\")".dependencies.winapi]
version = "0.3"
features = [
    "d3d11",
    "wingdi",
    "winuser",
    "winerror",
    "libloaderapi",
]

[target."cfg(target_os = \"windows\")".dependencies.wio]
version = "0.2"
