tree_magic_db/
lib.rs

1//! Packaging crate for the FreeDesktop.org shared MIME info database
2
3// This program is free software; you can redistribute it and/or
4// modify it under the terms of the GNU General Public License
5// as published by the Free Software Foundation; either version 2
6// of the License, or (at your option) any later version.
7//
8// This program is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11// GNU General Public License for more details.
12
13/// Returns a static reference to the MIME database 'aliases'
14pub fn aliases() -> &'static str {
15    include_str!("aliases")
16}
17
18/// Returns a static reference to the MIME database 'subclasses'
19pub fn subclasses() -> &'static str {
20    include_str!("subclasses")
21}
22
23/// Returns a static reference to the MIME database 'magic' data
24pub fn magic() -> &'static [u8] {
25    include_bytes!("magic")
26}