NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #2052 most downloaded on crates.io
Determines the MIME type of a file by traversing a filetype tree.
Latest stable
3.2.2
Last release 1 years ago
14 Nov 2025
Release timing varies
gaps range from 1 weeks to 2.2 years
Nearly every release is documented
notes for 14 of 15 stable releases
2 versions withdrawn
withdrawn after publishing
6 years old
17 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
* Upgrade to nom 8.0. Full Changelog: https://github.com/mbrubeck/tree_magic/compare/v3.2.1...v3.2.2
nom 8.0.Full Changelog: https://github.com/mbrubeck/tree_magic/compare/v3.2.1...v3.2.2
Fix HTML DOCTYPE detection by merging duplicate MIME type rules by @p4fg in https://github.com/mbrubeck/tree_magic/pull/29
Full Changelog: https://github.com/mbrubeck/tree_magic/compare/v3.2.0...v3.2.1
Improve performance by removing fnv dependency by @aehancoc in https://github.com/mbrubeck/tree_magic/pull/21
Your coding agent can read these notes before it upgrades. Set up the MCP server →
fnv dependency by @aehancoc in https://github.com/mbrubeck/tree_magic/pull/21Full Changelog: https://github.com/mbrubeck/tree_magic/compare/v3.1.6...v3.2.0
Implement the XDG base directory specification properly by @zimward in https://github.com/mbrubeck/tree_magic/pull/25
tree_magic_db version 3.0.1).Full Changelog: https://github.com/mbrubeck/tree_magic/compare/v3.1.5...v3.1.6
feat: support apple silicon homebrew path for shared-mime-info magic db by @YOU54F in https://github.com/mbrubeck/tree_magic/pull/24
Full Changelog: https://github.com/mbrubeck/tree_magic/compare/v3.1.4...v3.1.5
Fixed compile error on Rust toolchains older than 1.74.
Full Changelog: https://github.com/mbrubeck/tree_magic/compare/v3.1.3...v3.1.4
* Remove debugging code. Full Changelog: https://github.com/mbrubeck/tree_magic/compare/v3.1.2...v3.1.3
Full Changelog: https://github.com/mbrubeck/tree_magic/compare/v3.1.2...v3.1.3
Fix panic on empty lines in aliases or subclasses: https://github.com/mbrubeck/tree_magic/issues/12
aliases or subclasses: https://github.com/mbrubeck/tree_magic/issues/12Full Changelog: https://github.com/mbrubeck/tree_magic/compare/v3.1.1...v3.1.2
Fix a bug affecting detection of short files: https://github.com/mbrubeck/tree_magic/issues/15
$HOME: https://github.com/mbrubeck/tree_magic/issues/11Full Changelog: https://github.com/mbrubeck/tree_magic/compare/v3.1.0...v3.1.1
Added from_file and match_file methods.
from_file and match_file methods.lazy_static and bytecount.Full Changelog: https://github.com/mbrubeck/tree_magic/compare/v3.0.3...v3.1.0
Don’t panic if the database files are not found. Return an error instead
Nothing published for this version
* Upgrade to nom 7 (#3). * Internal improvements (#2).
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
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.
Thank you to @bradfier for noticing the licensing issues and implementing this fix (#1).
Re-license under the GNU GPL 2.0 or later. (This library includes files derived from the xdg-shared-mime-info project, which can only be distributed u
xdg-shared-mime-info project, which can only be distributed under the GPL. Previous versions which were published under an incorrect license have been yanked from crates.io.)* Update to nom 6.
Forked and changed name to tree_magic_mini
tree_magic_minicli feature and tmagic binary.One column per quarter.