#mime #xdg #shared #query #determine #lookup

shared-mime

Look up file types with the XDG Shared MIME database

2 releases

0.1.0 Dec 30, 2024
0.1.0-alpha1 Jul 9, 2024

#920 in Database interfaces

Download history 15/week @ 2024-10-02 2/week @ 2024-10-09 1/week @ 2024-11-13 1/week @ 2024-11-20 7/week @ 2024-12-04 11/week @ 2024-12-11 105/week @ 2024-12-25 23/week @ 2025-01-01 19/week @ 2025-01-08 5/week @ 2025-01-15

152 downloads per month
Used in 3 crates

MIT license

44KB
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.3MB
~27K SLoC