(deps) Add regex crate and improve MIME type detection

- Added `regex` dependency to obiread crate
- Replaced manual byte checks with regex-based detection for FASTA/FASTQ formats in mimetype.rs
- Switched from `once_cell::sync::Lazy` to standard library's `std:: sync :: LazyLock`
- Added generic text/plain fallback detection for ASCII-compatible content
- Updated `MimeTypeGuesser::new` constructor call syntax and simplified API usage of PeekReader's header method
- Implemented `Read trait for MimeTypeGuesser to allow transparent passthrough reading
This commit is contained in:
Eric Coissac
2026-04-24 17:14:33 +02:00
parent 22951fb0e8
commit 75bf980046
4 changed files with 41 additions and 14 deletions
+1
View File
@@ -10,3 +10,4 @@ ureq = "2"
tracing = "0.1.44"
tracing-subscriber = { version = "0.3.23", features = ["fmt", "env-filter"] }
infer = "0.19.0"
regex = "1"