Skip to content

programmatic video rendering framework that is actually fast

1.4 KB
Raw Blame
[package]
name = "pixel-example"
version = "1.4.2"
edition = "2024"

[dependencies]
clap = { version = "4.3.4", features = ["derive"] }
image = "0.25.5"
rand = "0.8.5"
getrandom = { version = "0.2.15", features = ["js"] }
fframes = { workspace = true, features = ["exif"] }

# `--renderer cpu|skia-cpu|gpu`: Skia on Metal on macOS, on Vulkan everywhere else
# `preview`: real-time GPU window
[target.'cfg(target_os = "macos")'.dependencies]
fframes_skia_renderer = { workspace = true, features = ["metal", "cli", "debug"] }
fframes_native_player = { workspace = true, features = ["metal", "audio"] }

[target.'cfg(not(any(target_os = "macos", target_arch = "wasm32")))'.dependencies]
fframes_skia_renderer = { workspace = true, features = ["vulkan", "cli", "debug"] }
fframes_native_player = { workspace = true, features = ["vulkan", "audio"] }

# FFmpeg codecs, portable so cached source builds work across CI runner CPUs. Windows
# links a prebuilt FFmpeg instead (see README).
[target.'cfg(not(any(target_arch = "wasm32", windows)))'.dependencies]
fframes = { workspace = true, features = ["h264", "h265", "libav-agree-gpl", "build-portable"] }

[features]
default = ["renderer"]
renderer = ["fframes/compile-time-svgtree", "fframes/cli"]

[lib]
crate-type = ["cdylib", "rlib"]
name = "pixel_memory_example"
path = "src/lib.rs"
doctest = false

[[bin]]
name = "pixel_memory_example_bin"
path = "src/main.rs"
required-features = ["renderer"]

[lints]
workspace = true