Added content readers to the file format detection

This commit is contained in:
Thorsten Sommer 2026-08-10 14:25:48 +02:00
parent 2dc8f31b38
commit f06452af53
Signed by untrusted user who does not match committer: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -39,7 +39,13 @@ pbkdf2 = "0.13.0"
hmac = "0.13.0"
sha2 = "0.11.0"
rcgen = { version = "0.14.8", features = ["pem"] }
file-format = "0.29.0"
# The readers are needed to identify a file by its content instead of its extension: zip covers
# OOXML and ODF, cfb the legacy Office formats, txt tells actual text from binary data, and exe
# recognizes executables which carry a harmless extension. Without them, every ZIP-based document
# is only detected as a plain archive.
file-format = { version = "0.29.0", features = ["reader-zip", "reader-cfb", "reader-txt", "reader-exe"] }
symphonia = { version = "0.6", default-features = false, features = ["aac", "aiff", "alac", "caf", "flac", "isomp4", "mkv", "mp1", "mp2", "mp3", "ogg", "pcm", "vorbis", "wav"] }
ropus = "=0.12.18"
rubato = { version = "4", default-features = false, features = ["fft_resampler"] }