bojand / infer

Small crate to infer file and MIME type by checking the magic number signature
MIT License
299 stars 28 forks source link

Truncate most test files to 4KiB #58

Open AlyoshaVasilieva opened 2 years ago

AlyoshaVasilieva commented 2 years ago

As one possible alternative to #57. All tests still pass, published crate size is about 157KiB.

4KiB is a fairly arbitrary value.

Most files are inevitably no longer valid, so they can't actually be parsed. Not sure that's important for this library or not.

DOC/PPT/XLS weren't touched as they're being parsed to infer their type.