file_type 0.9.0

File type detector
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.97.1"
name = "file_type"
version = "0.9.0"
authors = ["Brian Heineman <brian.heineman@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "File type detector"
readme = "README.md"
keywords = [
    "file",
    "file-type",
    "format",
]
categories = ["filesystem"]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/theseus-rs/file-type"

[features]
all = [
    "httpd",
    "iana",
    "linguist",
    "std",
    "wikidata",
]
default = [
    "std",
    "wikidata",
]
httpd = []
iana = []
linguist = []
std = []
wikidata = []

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

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

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

[[bench]]
name = "file_type"
path = "benches/file_type.rs"
harness = false

[dependencies.phf]
version = "0.14.0"
default-features = false

[dev-dependencies.anyhow]
version = "1.0.104"

[dev-dependencies.criterion]
version = "0.8.2"

[dev-dependencies.file-format]
version = "0.29.0"

[dev-dependencies.infer]
version = "0.22.0"

[dev-dependencies.magic]
version = "0.16.7"

[dev-dependencies.mime_guess]
version = "2.0.5"

[lints.clippy]
allow_attributes = "deny"
expect_used = "deny"
fallible_impl_from = "deny"
indexing_slicing = "deny"
large_stack_arrays = "allow"
mod_module_files = "deny"
panic = "deny"
panic_in_result_fn = "deny"
todo = "deny"
unimplemented = "deny"
unreachable = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust]
dead_code = "allow"
missing_debug_implementations = "deny"
unsafe_code = "deny"
unused_qualifications = "deny"
warnings = "deny"