Skip to content

programmatic video rendering framework that is actually fast

1.6 KB
Raw Blame
[package]
name = "fframes_native_player"
description = "Real-time native preview window for fframes videos, rendered with Skia"
version = "1.4.2"
edition = "2024"
license = "MIT"
repository = "https://github.com/dmtrKovalenko/fframes"
homepage = "https://fframes.studio"
authors = ["Dmitriy Kovalenko <[email protected]>"]

[lib]
doctest = false

[dependencies]
fframes.workspace = true
fframes_skia_renderer.workspace = true
winit = "0.30"
softbuffer = "0.4"
cpal = { version = "0.18", optional = true }
rtrb = { version = "0.4.1", optional = true }

# The CAMetalLayer of the window, presented to by Metal and by Vulkan (MoltenVK).
[target.'cfg(target_os = "macos")'.dependencies]
fframes = { workspace = true, features = ["preview-videotoolbox"] }
raw-window-metal = { version = "1.1", optional = true }
core-graphics-types = { version = "0.2", optional = true, default-features = false }

[dev-dependencies]
fframes = { workspace = true, features = ["compile-time-svgtree"] }
hello-world-example = { path = "../examples/hello-world" }

[features]
default = ["vulkan", "audio"]
audio = ["cpal", "dep:rtrb"]
# At least one GPU backend is required to build Skia with Ganesh. The player falls back
# to the Skia CPU raster backend at runtime if the GPU backend can not be initialized.
vulkan = ["fframes_skia_renderer/vulkan", "dep:raw-window-metal"]
metal = ["fframes_skia_renderer/metal", "dep:raw-window-metal", "dep:core-graphics-types"]

# See fframes-media/Cargo.toml: docs.rs cannot build FFmpeg from source.
[package.metadata.docs.rs]
rustc-args = ["--cfg", "fframes_docsrs"]

[lints]
workspace = true