grafting 0.6.0

Native texture interop helpers for importing offscreen producer frames into host-owned wgpu textures
Documentation
# 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 = "2024"
rust-version = "1.92"
name = "grafting"
version = "0.6.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Native texture interop helpers for importing offscreen producer frames into host-owned wgpu textures"
readme = "README.md"
license = "MPL-2.0"
repository = "https://github.com/merely-made/wgpu-graft"

[features]
default = [
    "wgpu-29",
    "surfman",
]
gl = ["dep:glow"]
surfman = [
    "gl",
    "dep:euclid",
    "dep:gleam",
    "dep:image",
    "dep:surfman",
]
wgpu-28 = [
    "dep:wgpu_28",
    "dep:wgpu_hal_28",
    "dep:metal",
    "dep:foreign-types-shared",
]
wgpu-29 = [
    "dep:wgpu_29",
    "dep:wgpu_hal_29",
]
wgpu-30 = [
    "dep:wgpu_30",
    "dep:wgpu_hal_30",
]

[lib]
name = "grafting"
path = "src/lib.rs"

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

[dependencies.dpi]
version = "0.1.2"

[dependencies.euclid]
version = "0.22.11"
optional = true

[dependencies.gleam]
version = "0.15.1"
optional = true

[dependencies.glow]
version = "0.17.0"
optional = true

[dependencies.image]
version = "0.25"
optional = true

[dependencies.surfman]
version = "0.13.0"
features = [
    "chains",
    "sm-angle-default",
]
optional = true

[dependencies.thiserror]
version = "2.0.17"

[dependencies.wgpu_28]
version = "28.0.0"
features = ["metal"]
optional = true
package = "wgpu"

[dependencies.wgpu_29]
version = "29.0.1"
features = ["metal"]
optional = true
package = "wgpu"

[dependencies.wgpu_30]
version = "30.0.1"
features = ["metal"]
optional = true
package = "wgpu"

[dependencies.wgpu_hal_28]
version = "28.0.0"
optional = true
package = "wgpu-hal"

[dependencies.wgpu_hal_29]
version = "29.0.1"
optional = true
package = "wgpu-hal"

[dependencies.wgpu_hal_30]
version = "30.0.1"
optional = true
package = "wgpu-hal"

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

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

[target.'cfg(any(target_os = "linux", target_os = "android", target_os = "windows"))'.dependencies.ash]
version = "0.38.0"

[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2"

[target.'cfg(target_os = "linux")'.dev-dependencies.pollster]
version = "0.4"

[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.62"
features = [
    "Win32_Foundation",
    "Win32_Graphics_Direct3D11",
    "Win32_Graphics_Direct3D12",
    "Win32_Graphics_Dxgi",
    "Win32_Graphics_Dxgi_Common",
    "Win32_Security",
    "Win32_System_LibraryLoader",
    "Win32_System_Threading",
]

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

[target.'cfg(target_vendor = "apple")'.dependencies.foreign-types-shared]
version = "0.3.1"
optional = true

[target.'cfg(target_vendor = "apple")'.dependencies.metal]
version = "0.33.0"
optional = true

[target.'cfg(target_vendor = "apple")'.dependencies.objc2]
version = "0.6.3"

[target.'cfg(target_vendor = "apple")'.dependencies.objc2-foundation]
version = "0.3.2"

[target.'cfg(target_vendor = "apple")'.dependencies.objc2-io-surface]
version = "0.3.2"

[target.'cfg(target_vendor = "apple")'.dependencies.objc2-metal]
version = "0.3.2"
features = [
    "MTLDevice",
    "MTLAllocation",
    "MTLResource",
    "MTLTexture",
    "MTLEvent",
    "objc2-io-surface",
]