Skip to content

xdg_mime 0.1.0 (preview)

Pre-release
Pre-release
Compare
Choose a tag to compare
@ebassi ebassi released this 13 May 19:32
· 103 commits to master since this release

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.

Basic functionality

  • load the system shared-mime database
  • get the list of possible MIME types for a file name
  • get the MIME type for a chunk of data
  • compare two MIME types for equality, including aliases
  • look up icon names for a given MIME type
  • look up all the parent types for a MIME type

Planned future improvements

  • better documentation
  • more examples
  • an implementation of the recommended checking algorithm as
    defined by the shared-mime-info specification
  • explicit database reloading
  • memory mapped mime.cache support

Further improvements

  • MIME type handlers
  • accessing the XML data