From f06452af534a243954564f28f75917d9c18dbc69 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Mon, 10 Aug 2026 14:25:48 +0200 Subject: [PATCH] Added content readers to the file format detection --- runtime/Cargo.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 77c1b40d..0ec6b91a 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -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"] }