magic-db 0.2.5

This crate provides a precompiled magic database for file type identification. It allows any program to perform magic file detection without the burden of compiling rules from source.
Documentation
1
2
3
4
5
6
7
8
9
fn main() {
    // We need to trigger a re-run if magdir changed
    // we cannot rely on proc-macro because we embed
    // only a compiled version of the rules within the
    // final binary. File tracking with include_byte!
    // seems to work only when the file is not eliminated
    // by DCE.
    println!("cargo::rerun-if-changed=src/magdir");
}