libmagic-rs 0.12.3

A pure-Rust implementation of libmagic for file type identification
Documentation
# Clippy configuration for libmagic-rs.
#
# Test code is exempt from the panic-safety restriction lints: unwrap/expect/
# panic and direct indexing are the idiomatic way to express test invariants,
# and a panicking test is a failing test, not a vulnerability. Library and
# binary code remain fully covered by the workspace lint table in Cargo.toml.
allow-unwrap-in-tests = true
allow-expect-in-tests = true
allow-panic-in-tests = true
allow-dbg-in-tests = true
allow-print-in-tests = true
allow-indexing-slicing-in-tests = true

# Paired with the `[bans].skip` entry in deny.toml -- both gates flag the same
# `syn` 2.x/3.x duplicate (cargo-deny via `multiple-versions`, clippy via
# `multiple_crate_versions`), so an exception in only one leaves CI red.
#
# `allowed-duplicate-crates` is scoped to the named crate, so
# `multiple_crate_versions` keeps firing for every other duplicate rather than
# being downgraded to `allow` wholesale. See deny.toml for the full rationale
# and the removal condition.
allowed-duplicate-crates = ["syn"]