[package]
name = "file-identify"
version = "0.4.0"
edition = "2024"
authors = ["Serhii Kaliuzhnyi <https://github.com/grok-rs>"]
description = "File identification library for Rust - detects file types based on extensions, shebangs, and content"
documentation = "https://docs.rs/file-identify"
readme = "README.md"
repository = "https://github.com/grok-rs/file-identify"
license = "MIT"
keywords = ["file", "identification", "detection", "filetype", "mime"]
categories = ["filesystem", "command-line-utilities"]
rust-version = "1.94.0"
exclude = ["tests/fixtures/**/*"]

[[bin]]
name = "file-identify"
path = "src/bin/main.rs"
required-features = ["cli"]

[features]
default = []
cli = ["dep:clap"]

[dependencies]
clap = { version = "4.0", features = ["derive"], optional = true }
thiserror = "2.0.12"
smallvec = "1.11"
phf = { version = "0.12.1", features = ["macros"] }

[dev-dependencies]
serde_json = "1.0"
tempfile = "3.8"

