rustio rustio.net
58

magic

v0.16.7 Growing

High level bindings for the `libmagic` C library

MIT OR Apache-2.0 Edition 2018 MSRV 1.64
API bindingsFilesystemParsing tools #magic#file#bindings#ffi

Quick Verdict

  • !Pre-1.0: API may have breaking changes
  • โœ“Trusted by 118 crates
  • โœ“Tiny footprint (15KB, 2 deps)
  • โœ“Permissive license (MIT OR Apache-2.0)

Security

Checking security advisories...
Downloads
2.1M
Dependents
118
Releases
35
Size
15KB

Deep Insights

๐Ÿ“ˆ
Strong growth momentum

472.7K downloads in the last 30 days (15.8K/day), up 87% from the previous period.

๐Ÿ”—
Moderate adoption

118 crates depend on magic. Reasonable ecosystem adoption, though not yet a core dependency.

๐Ÿ”ฌ
Pre-1.0 for over a year

Despite being 11+ years old, magic hasn't reached 1.0 yet. Expect potential API changes between versions.

๐Ÿชถ
Minimal dependencies

Only 2 direct dependencies. Lean dependency tree means faster builds and lower supply chain risk.

๐Ÿ“
Compact crate

At 15KB, magic is lightweight. Small crate size correlates with focused, well-scoped functionality.

๐ŸŒŸ
Used by top crates

Notable dependents include yara-x, file_type, boreal, malwaredb-server, mime-detective. When high-quality crates choose magic, it's a strong quality signal.

Health Breakdown

Maintenance 12/25

Recency, release consistency, active ratio

Quality 15/25

Yanked ratio, deps, size, maturity, features

Community 12/20

Reverse deps, ownership, ecosystem

Popularity 8/15

Downloads, momentum, growth trend

Documentation 11/15

Docs, repo, license, metadata

Download Trend

Daily downloads ยท last 90 days
9K/day avg+228%
010K20K30K12/291/162/32/213/113/28

Top Dependents

Version Adoption

v0.16.2
51%
v0.16.7
33%
v0.13.0
13%
v0.12.2
2%
v0.15.1
1%

Release Timeline

35 releasessince 2014
J
F
M
A
M
J
J
A
S
O
N
D
2014
8
2015
6
2016
4
2017
2
2018
2019
2020
2021
3
2022
1
2023
6
2024
2025
5
2026
Less
More

README

Loading README...

Maintainers

Dependencies
2
direct dependencies
Dependents
118
crates depend on magic

Similar Crates