xdg-mime

Crates.ioxdg-mime
lib.rsxdg-mime
version0.4.0
sourcesrc
created_at2020-05-13 19:30:28.87238
updated_at2024-04-19 17:56:03.17972
descriptionA library for loading and querying the XDG shared MIME database
homepage
repositoryhttps://github.com/ebassi/xdg-mime-rs
max_upload_size
id241226
size392,064
Emmanuele Bassi (ebassi)

documentation

https://docs.rs/xdg_mime

README

crates.io docs.rs Build

xdg-mime-rs

Xdg-mime-rs is a library that parses the shared-mime-info database and allows querying it to determine the MIME type of a file from its extension or from its contents.

Xdg-mime-rs is a complete re-implementation of the xdgmime C library, with some added functionality that typically resides in higher level components, like determining the appropriate icon name for a file from the icon theme.

Documentation.

Installation

Add the following to your Cargo.toml file:

[dependencies]
xdg-mime = "^0.3"

or install cargo-edit and call:

cargo add xdg-mime@0.3

Copyright and license

Copyright 2020 Emmanuele Bassi

This software is distributed under the terms of the Apache License version 2.0.

Commit count: 194

cargo fmt