magic 0.3.0

libmagic bindings
docs.rs failed to build magic-0.3.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: magic-0.16.2

rust-magic Build Status

libmagic bindings for Rust.


libmagic(3) is the backend of the file(1) command, which classifies files, e.g.:

$ file assets/rust-logo-128x128-blk.png
assets/rust-logo-128x128-blk.png: PNG image data, 128 x 128, 8-bit/color RGBA, non-interlaced

This project provides libmagic Rust bindings (NOT the file command from the example). Documentation is rust-magic on Rust CI and $ man 3 libmagic.