Cargo Features
[dependencies]
tft = { version = "0.1.1", default-features = false, features = ["detect", "serde", "docs"] }
- default = detect
-
## Features
- detect default
-
Provide the
detect
andtry_detect
functions for detecting a file type from a path and file contentEnables aho-corasick, lazy-regex, once_cell, phf, and regex
- serde
-
Provide
serde::Serialize
andserde::Deserialize
implementations forFileType
Enables serde and serde_with
- docs
-
Enable this when building the docs
Enables document-features and rustc_version