- determining file extension
- determining file type
- determining file's mime type
you have 2 options for mime type detection library. one of them must be enabled:
- infer(default. smaller but may perform slower sometimes)
- mime_guess
$ git clone https://codeberg.org/XDream8/file-rs
$ cd file-rs
$ cargo build --profile optimized --no-default-features --features mime_guess
$ ./target/optimized/file-rs
$ file-rs -h
$ file-rs <files> <args>
- example:
$ file-rs Cargo.toml