mpv-engine 0.2.1

Toolkit-agnostic libmpv embedding core: handle lifecycle, commands, typed events, and render seams.
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.85"
name = "mpv-engine"
version = "0.2.1"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Toolkit-agnostic libmpv embedding core: handle lifecycle, commands, typed events, and render seams."
readme = "README.md"
keywords = [
    "mpv",
    "libmpv",
    "video",
    "player",
]
categories = ["multimedia::video"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ophymx/mpv-engine"

[features]
export = []
wgpu = [
    "export",
    "dep:wgpu",
    "dep:wgpu-hal",
    "dep:ash",
    "dep:objc2",
    "dep:objc2-metal",
    "dep:objc2-io-surface",
    "dep:windows",
]

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

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

[[example]]
name = "harness"
path = "examples/harness.rs"
required-features = ["wgpu"]

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

[[example]]
name = "winit_player"
path = "examples/winit_player.rs"
required-features = ["wgpu"]

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

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

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

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

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

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

[dependencies.libc]
version = "0.2"

[dependencies.parking_lot]
version = "0.12"

[dependencies.rsmpv]
version = "0.2.1"
features = ["render"]

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.pollster]
version = "0.4"

[dev-dependencies.tempfile]
version = "3"

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

[target.'cfg(target_os = "linux")'.dependencies.ash]
version = "0.38"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.wgpu]
version = "30"
features = ["vulkan"]
optional = true
default-features = false

[target.'cfg(target_os = "linux")'.dependencies.wgpu-hal]
version = "30"
features = ["vulkan"]
optional = true
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6"
optional = true

[target.'cfg(target_os = "macos")'.dependencies.objc2-io-surface]
version = "0.3.2"
features = ["objc2-core-foundation"]
optional = true

[target.'cfg(target_os = "macos")'.dependencies.objc2-metal]
version = "0.3.2"
features = [
    "MTLAllocation",
    "MTLDevice",
    "MTLPixelFormat",
    "MTLResource",
    "MTLTexture",
    "objc2-io-surface",
]
optional = true

[target.'cfg(target_os = "macos")'.dependencies.wgpu]
version = "30"
features = ["metal"]
optional = true
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.wgpu-hal]
version = "30"
features = ["metal"]
optional = true
default-features = false

[target.'cfg(target_os = "windows")'.dependencies.wgpu]
version = "30"
features = ["dx12"]
optional = true
default-features = false

[target.'cfg(target_os = "windows")'.dependencies.wgpu-hal]
version = "30"
features = ["dx12"]
optional = true
default-features = false

[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.62"
features = [
    "Win32_Foundation",
    "Win32_Graphics_Direct3D12",
]
optional = true
default-features = false