#mime #shared #xdg #determine #up #query

shared-mime

Look up file types with the XDG Shared MIME database

1 unstable release

0.1.0-alpha1 Jul 9, 2024

#914 in Database interfaces


Used in 2 crates

MIT license

43KB
1K SLoC

shared-mime query package

This package provides support for querying the FreeDesktop Shared MIME database to determine the MIME types of files. It implements the MIME query logic described in the specification, with some additional disambiguation (and currently some missing features). See the documentation for details.

If you want to use this in single-binary distributions, see shared-mime-embedded.


lib.rs:

Support for parsing entries from the XDG Shared Mime Info database.

Dependencies

~0.4–1.4MB
~29K SLoC