d3d11 0.3.3

Safe(r) bindings to the D3D11 API
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 = "2021"
name = "d3d11"
version = "0.3.3"
authors = ["cohaereo <cohae@cohae.dev>"]
build = false
include = [
    "**/*.rs",
    "Cargo.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe(r) bindings to the D3D11 API"
homepage = "https://github.com/cohaereo/d3d11-rs"
readme = "README.md"
keywords = [
    "d3d",
    "directx",
    "microsoft",
    "windows",
    "winapi",
]
categories = [
    "api-bindings",
    "graphics",
    "game-development",
    "hardware-support",
]
license = "MIT/Apache-2.0"
repository = "https://github.com/cohaereo/d3d11-rs"

[package.metadata.docs.rs]
default-target = "x86_64-pc-windows-msvc"
targets = [
    "aarch64-pc-windows-msvc",
    "i686-pc-windows-msvc",
    "x86_64-pc-windows-msvc",
    "x86_64-unknown-linux-gnu",
]

[features]
default = [
    "fxc",
    "fxc_wine",
]
fxc = ["d3d11-ffi/Win32_Graphics_Direct3D_Fxc"]
fxc_server = ["fxc"]
fxc_wine = ["fxc"]
profiling = ["dep:profiling"]
sdl2 = [
    "d3d11-ffi/dxvk_wsi_sdl2",
    "dep:sdl2",
]
sdl3 = [
    "d3d11-ffi/dxvk_wsi_sdl3",
    "dep:sdl3",
]

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

[[bin]]
name = "fxc-server"
path = "src/bin/fxc-server.rs"
required-features = [
    "fxc",
    "fxc_server",
]

[[example]]
name = "headless"
path = "examples/headless.rs"

[[example]]
name = "triangle"
path = "examples/triangle.rs"

[dependencies.bincode]
version = "2.0.1"
features = [
    "alloc",
    "derive",
    "std",
]
default-features = false

[dependencies.bitflags]
version = "2.6.0"

[dependencies.bon]
version = "3.3.1"

[dependencies.byteorder]
version = "1.5.0"

[dependencies.d3d11-ffi]
version = "0.3.0"

[dependencies.paste]
version = "1.0.15"

[dependencies.profiling]
version = "1"
optional = true

[dependencies.sdl2]
version = "0.38"
features = ["raw-window-handle"]
optional = true

[dependencies.sdl3]
version = "0.16"
features = ["raw-window-handle"]
optional = true

[dependencies.smallvec]
version = "1.15.1"

[dependencies.static_assertions]
version = "1.1.0"

[dependencies.thiserror]
version = "2.0"

[dev-dependencies.anyhow]
version = "1"

[dev-dependencies.image]
version = "0.25"
features = ["bmp"]
default-features = false

[dev-dependencies.raw-window-handle]
version = "0.6"