Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/svg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ workspace = true

[dependencies]
craft-xml = { workspace = true }
craft-image-codecs = { workspace = true }
craft-image-codecs = { workspace = true, optional = true }
# SVGZ (gzip), pure-Rust backend.
flate2 = { version = "1", default-features = false, features = ["rust_backend"] }
kurbo = { workspace = true }
Expand All @@ -29,7 +29,7 @@ resvg = { version = "=0.48.1", default-features = false, features = ["text", "ra

[features]
# `craft_svg::tree`: usvg behind the bounded entry point.
tree = ["dep:usvg"]
tree = ["dep:usvg", "dep:craft-image-codecs"]
# Text converted to paths (needs a font database in the options).
tree-text = ["tree", "usvg/text"]
# The system's fonts in `usvg::fontdb`.
Expand Down
1 change: 0 additions & 1 deletion crates/update/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ image = { version = "0.25", default-features = false, features = ["png"], option
serde = { workspace = true }
serde_json = { workspace = true }
log = "0.4"
getrandom = "0.3"
tempfile = "3"
sha2 = "0.10"
ureq = { version = "3.4", default-features = false, features = ["rustls-no-provider", "_ring", "gzip", "platform-verifier"] }
Expand Down
30 changes: 15 additions & 15 deletions crates/video/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,48 +16,48 @@ workspace = true
[features]
# Every codec feature turns on one codec module; none is on by default.
# DNxHD / DNxHR (SMPTE ST 2019-1): decoder and encoder.
dnx = []
dnx = ["dep:craft-media", "dep:thiserror"]
# APV (Advanced Professional Video, RFC 9924): decoder and encoder; `apv-decode` or `apv-encode` for one of them.
apv = ["apv-decode", "apv-encode"]
apv-decode = ["craft-media/bitstream"]
apv-encode = ["craft-media/bitstream"]
apv-decode = ["craft-media/bitstream", "dep:thiserror"]
apv-encode = ["craft-media/bitstream", "dep:thiserror"]
# VP8 (RFC 6386): decoder and encoder; `vp8-decode` or `vp8-encode` for one of them.
vp8 = ["vp8-decode", "vp8-encode"]
vp8-decode = []
vp8-encode = []
vp8-decode = ["dep:thiserror"]
vp8-encode = ["dep:thiserror"]
# MPEG-2 video (ITU-T H.262) and MPEG-1 video (ISO/IEC 11172-2): decoder (`mpeg2-decode`) and
# MPEG-2 encoder (`mpeg2-encode`). The encoder reuses the decoder's code tables, IDCT and motion
# compensation, so it turns on the decoder too.
mpeg2 = ["mpeg2-decode", "mpeg2-encode"]
mpeg2-decode = []
mpeg2-decode = ["dep:thiserror"]
mpeg2-encode = ["mpeg2-decode"]
# MPEG-4 Part 2 video (ISO/IEC 14496-2, the Xvid/DivX format): Simple profile encoder.
mpeg4 = ["mpeg4-encode"]
mpeg4-encode = ["craft-media/bitstream"]
mpeg4-encode = ["craft-media/bitstream", "dep:thiserror"]
# Apple ProRes (SMPTE RDD 36): decoder and encoder.
prores = ["craft-media/bitstream"]
prores = ["craft-media/bitstream", "dep:thiserror"]
# H.264 / AVC: decoder and encoder; `h264-decode` or `h264-encode` for one of them.
h264 = ["h264-decode", "h264-encode"]
h264-decode = ["craft-media/bitstream"]
h264-encode = ["craft-media/isobmff"]
h264-decode = ["craft-media/bitstream", "dep:thiserror"]
h264-encode = ["craft-media/isobmff", "dep:thiserror"]
# H.265 / HEVC: decoder and encoder; `hevc-decode` or `hevc-encode` for one of them.
hevc = ["hevc-decode", "hevc-encode"]
hevc-decode = ["craft-media/bitstream"]
hevc-decode = ["craft-media/bitstream", "dep:thiserror"]
hevc-encode = ["craft-media/isobmff"]
# VP9: decoder and encoder; `vp9-decode` or `vp9-encode` for one of them.
vp9 = ["vp9-decode", "vp9-encode"]
vp9-decode = ["craft-media/bitstream"]
vp9-decode = ["craft-media/bitstream", "dep:thiserror"]
vp9-encode = ["craft-media/isobmff"]
# AV1: decoder and encoder; `av1-decode` or `av1-encode` for one of them.
av1 = ["av1-decode", "av1-encode"]
av1-decode = []
av1-decode = ["dep:thiserror"]
av1-encode = ["craft-media/isobmff"]
# Decode and encode across worker threads (rayon) in the codecs that support it.
threads = ["dep:rayon"]

[dependencies]
craft-media = { workspace = true }
thiserror = { workspace = true }
craft-media = { workspace = true, optional = true }
thiserror = { workspace = true, optional = true }
rayon = { workspace = true, optional = true }

[dev-dependencies]
Expand Down
Loading