whatisthis 0.1.0

A tool to identify file types based on their content
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![recursion_limit = "1024"]

#[cfg(not(target_arch = "wasm32"))]
fn main() {
    let code = whatisthis::cli_main();
    std::process::exit(code);
}

#[cfg(target_arch = "wasm32")]
fn main() {
    use console_error_panic_hook::set_once as set_panic_hook;
    set_panic_hook();
}

#[cfg(target_arch = "wasm32")]
pub use whatisthis::process_file;