Forward opt-in threading to rav1e encoder dependencies

This commit is contained in:
Dylan M. Taylor committed 2026-11-15 18:24:32 -05:00
1 parent 9687434f72
commit 1c39341f96
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -13,6 +13,8 @@ workspace = true
[features]
corpus = []
default = []
# Opt in to threaded AVIF encoding without enabling AVIF (or assembly) by itself.
threads = ["ravif?/threading", "rav1e?/threading"]
avif = ["image/avif", "dep:ravif", "dep:rav1e", "dep:avif-serialize"]
heif = ["dep:craft-heif"]
# AVIF decode: craft-video's clean-room pure-Rust AV1 decoder. Native targets only (on wasm32 a
+1 -1
View File
@@ -57,7 +57,7 @@ av1-encode = ["craft-media/isobmff"]
# Tiled AV1 fallback for frames that exceed the clean-room encoder's single-tile limits.
av1-large-encode = ["av1-encode", "dep:rav1e"]
# Decode and encode across worker threads (rayon) in the codecs that support it.
threads = ["dep:rayon"]
threads = ["dep:rayon", "rav1e?/threading"]
[dependencies]
craft-media = { workspace = true }