-
Split GPL-licensed files into a separate optional dependency. The main crate is now MIT-licensed, and searches for data files installed on the system at run-time by default.
If you enable the
with-gpl-data
feature, then the data files will be hard-coded into the library at compile time. Programs that use this feature must be distributed according to the terms of the GNU GPL 2.0 or later.
- Change license to GPL-2.0-or-later for compatibility with upstream xdg-shared-mime-info license.
- Update to nom 6.
- Forked and changed name to
tree_magic_mini
- Updated dependencies.
- Reduced copying and memory allocation, for a slight increase in speed and decrease in memory use.
- Reduced API surface. Some previously public APIs are now internal.
- Removed the optional
cli
feature andtmagic
binary.
Upgraded package versions to latest (except nom, which is currently stuck at 3.x) and fixed the paths in the doc tests
Yanked due to accidental breaking API change
Incorporated fix by Bram Sanders to prevent panic on non-existent file.
Major changes, front-end and back.
- Added
is_alias
function from_*
functions excludingfrom_*_node
now return MIME, not Option- New feature flag:
staticmime
. Changes type of MIME from String to &'static str - Bundled magic file, so it works on Windows as well.
- Split
fdo_magic
checker intofdo_magic::sys
andfdo_magic::builtin
len
argument removed from*_u8
functions- Tests and benchmarks added.
- Fixed horribly broken logic in
fdo_magic
checker - Checks the most common types before obscure types
- Changed hasher to
fnv
. - Added support for handling aliases in input
tmagic
command has more features- Major speed improvements
- Changed public interface: Added
from_u8
export function - Changed public interface: Changed len argument for
u8
functions fromu32
tousize
- Minor speed improvements in
fdo_magic
checker
Initial release