# tiny-tree-magic
[](https://crates.io/crates/tiny-tree-magic)
[](https://docs.rs/tiny-tree-magic)
[](https://codeberg.org/adamreichold/tiny-tree-magic/actions?workflow=ci.yaml)
MIME type detection using mmappable shared MIME-info cache
This library takes the basic idea of the [`tree_magic_mini` crate](https://github.com/mbrubeck/tree_magic) and reimplements it against the mmappable cache produced by the [`update-mime-database` tool](https://gitlab.freedesktop.org/xdg/xdgmime) tool based the [shared MIME-info database](https://www.freedesktop.org/wiki/Software/shared-mime-info/).