Skip to content

programmatic video rendering framework that is actually fast

1.5 KB
Raw Blame
[package]
name = "hello-world-example"
version = "1.4.2"
edition = "2024"
build = "../../cargo-fframes/templates/build.rs"

[dependencies]
fframes.workspace = true

clap = { version = "4.3.4", features = ["derive"] }

# `--renderer cpu|skia-cpu|gpu`: Skia on Metal on macOS, on Vulkan everywhere else
[target.'cfg(target_os = "macos")'.dependencies]
fframes_skia_renderer = { workspace = true, features = ["metal", "cli"] }
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"] }
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", "vpx", "libav-agree-gpl", "build-portable"] }

[target.'cfg(all(any(target_os = "macos", target_os = "linux"), not(target_feature = "crt-static")))'.dependencies]
fframes-dylib = { workspace = true, optional = true }

[features]
default = ["renderer", "dynamic-linking"]
dynamic-linking = ["dep:fframes-dylib"]
renderer = ["fframes/compile-time-svgtree", "fframes/cli"]

[lib]
name = "hello_world_example"
path = "src/lib.rs"
doctest = false

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

[lints]
workspace = true