tiny-tree-magic 0.1.5

MIME type detection using mmappable shared MIME-info cache
Documentation
1
2
3
4
5
6
7
8
9
# tiny-tree-magic

[![crates.io](https://img.shields.io/crates/v/tiny-tree-magic.svg)](https://crates.io/crates/tiny-tree-magic)
[![docs.rs](https://docs.rs/tiny-tree-magic/badge.svg)](https://docs.rs/tiny-tree-magic)
[![codeberg.org](https://codeberg.org/adamreichold/tiny-tree-magic/actions/workflows/ci.yaml/badge.svg)](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/).