Cargo Features

tft = { version = "0.1.1", default-features = false, features = ["detect", "serde", "docs"] }
default = detect

## Features

detect default

Provide the detect and try_detect functions for detecting a file type from a path and file content

Enables aho-corasick, lazy-regex, once_cell, phf, and regex


Provide serde::Serialize and serde::Deserialize implementations for FileType

Enables serde and serde_with


Enable this when building the docs

Enables document-features and rustc_version