Rust crate for querying the shared-mime-info database
APACHE-2.0 License
text/plain
for desktop files with no extensions, as a security precautionPublished by ebassi over 4 years ago
Quick bug fix release.
When loading the shared-mime info database from multiple locations we might end up loading the same data. When there are multiple globs matching with the same type, we might end up in a confusing situation, and break the MIME type guessing.
text/turtle
typePublished by ebassi over 4 years ago
New stable release, improving the code to be more idiomatic and less "hey, this is the first real Rust project of a C programmer".
Published by ebassi over 4 years ago
This is the first real stable release of the xdg_mime crate.
Guess.mime_type
method now returns a reference to the mime::Mime
instance, instead of a copy.GuessBuilder
type acquired new methods to improve the MIME type detection:metadata
: pass a std::fs::Metadata
object of a file; this allows us to detect directories, executable files, or empty filespath
: pass a Path
reference to a file; this allows us to automatically fill up the other fields when calling the guess
methodinode/symlink
MIME typePublished by ebassi over 4 years ago
Bug fix release.
Contains a fix in the MIME content matching code which prevented, among other things, to determine the MIME type of shell scripts. See: #13
Published by ebassi over 4 years ago
Another preview release of the xdg_mime crate.
The API is definitely stabler, but I reserve the right to tweak it to
conform to the Rust style guidelines, and especially in light of
feedback received from external users.
SharedMimeInfo.reload
method, which allows you to reloadSharedMimeInfo.guess_mime_type
method, which allows youPublished by ebassi over 4 years ago
Initial release of the xdg_mime crate.
You should consider this a "preview" release; the API hasn't been
finalized, yet, but I consider this the minimum safe set of symbols to
expose for the time being.
mime.cache
support