[package]
edition = "2024"
name = "dawn-rs"
version = "0.1.2-dev"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust wrapper for the Dawn API"
homepage = "https://github.com/csmoe/dawn-rs"
documentation = "https://docs.rs/dawn-rs"
readme = "README.md"
license = "BSD-3-Clause"
repository = "https://github.com/csmoe/dawn-rs"
[features]
compat = []
dawn = []
default = [
"dawn",
"native",
]
emscripten = []
native = []
[lib]
name = "dawn_rs"
path = "src/lib.rs"
[[example]]
name = "adapter-info"
path = "examples/adapter_info.rs"
[[example]]
name = "triangle"
path = "examples/triangle.rs"
[dependencies.bitflags]
version = "2"
[dev-dependencies.winit]
version = "0.30"
features = ["rwh_06"]
[target.'cfg(target_os = "macos")'.dev-dependencies.objc2]
version = "0.6"
[target.'cfg(target_os = "macos")'.dev-dependencies.objc2-quartz-core]
version = "0.3"
features = [
"CALayer",
"CAMetalLayer",
]
[target.'cfg(target_os = "macos")'.dev-dependencies.raw-window-metal]
version = "1"
[target.'cfg(target_os = "windows")'.dev-dependencies.windows]
version = "0.62"
features = [
"Win32_Graphics_Dxgi",
"Win32_Graphics_Direct3D",
"Win32_Foundation",
"Win32",
"Win32_Graphics_Dxgi_Common",
]