file-identify 0.4.0

File identification library for Rust - detects file types based on extensions, shebangs, and content
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

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

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

[lib]
name = "file_identify"
path = "src/lib.rs"

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

[[test]]
name = "cli_tests"
path = "tests/cli_tests.rs"

[[test]]
name = "extensions_test"
path = "tests/extensions_test.rs"

[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"

[[test]]
name = "python_compatibility_test"
path = "tests/python_compatibility_test.rs"

[dependencies.clap]
version = "4.0"
features = ["derive"]
optional = true

[dependencies.phf]
version = "0.12.1"
features = ["macros"]

[dependencies.smallvec]
version = "1.11"

[dependencies.thiserror]
version = "2.0.12"

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.tempfile]
version = "3.8"