libmagic-rs 0.3.2

A pure-Rust implementation of libmagic for file type identification
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.89"
name = "libmagic-rs"
version = "0.3.2"
authors = [
    "UncleSp1d3r <unclespid3r@evilbitlabs.io>",
    "KryptoKat <kryptokat@evilbitlabs.io>",
]
build = "build.rs"
exclude = [
    "/spec",
    "/docs",
    "/.kiro",
    "/.cursor",
    "/.vscode",
    "/.github",
    "/.git",
    "/.env.*",
    "*.orig",
    "AGENTS.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A pure-Rust implementation of libmagic for file type identification"
homepage = "https://evilbitlabs.io/libmagic-rs"
documentation = "https://docs.rs/libmagic-rs"
readme = "README.md"
keywords = [
    "file",
    "magic",
    "libmagic",
    "file-type",
    "identification",
]
categories = [
    "command-line-utilities",
    "parsing",
]
license = "Apache-2.0"
repository = "https://github.com/EvilBit-Labs/libmagic-rs"

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

[[bin]]
name = "rmagic"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.byteorder]
version = "1.5.0"

[dependencies.cfg-if]
version = "1.0.4"

[dependencies.clap]
version = "4.5.60"
features = ["derive"]

[dependencies.clap-stdin]
version = "0.8.1"

[dependencies.clap_complete]
version = "4.5"

[dependencies.ctrlc]
version = "3.4"
features = ["termination"]

[dependencies.memchr]
version = "2.7.6"

[dependencies.memmap2]
version = "0.9.10"

[dependencies.nom]
version = "8.0.0"

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.149"

[dependencies.thiserror]
version = "2.0.18"

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

[dev-dependencies.insta]
version = "1.46.3"
features = ["json"]

[dev-dependencies.nix]
version = "0.31.2"
features = ["fs"]

[dev-dependencies.proptest]
version = "1.10.0"

[dev-dependencies.regex]
version = "1.12.3"

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

[build-dependencies.nom]
version = "8.0.0"

[build-dependencies.serde]
version = "1.0.228"
features = ["derive"]

[build-dependencies.thiserror]
version = "2.0.18"

[profile.dist]
lto = "thin"
overflow-checks = true
inherits = "release"
strip = true

[profile.release]
lto = "thin"
codegen-units = 1
strip = true