feat: add lz4 command fallback, remove unused magic.rs

- Add program-based lz4 command fallback when lz4 feature is disabled
- Feature-gate lz4.rs and lz4 tests to compile without lz4_flex
- Delete legacy magic.rs (unused, no feature gating, superseded by magic_file.rs)
This commit is contained in:
2026-03-13 08:51:10 -03:00
parent b166477202
commit d5d58bc52c
6 changed files with 28 additions and 371 deletions

View File

@@ -1,4 +1,4 @@
use anyhow::{Context, Result, anyhow};
use anyhow::{anyhow, Context, Result};
use log::*;
use std::fs::File;
use std::io::{Read, Write};