magical_rs 0.3.0

A zero-dependency, no_std-friendly Rust crate that detects file types with surgical precision by matching magic bytes at exact offsets — including deep-offset formats like ISO and TAR. Built for speed, safety, and extensibility.
Documentation
1
2
3
4
pub enum MatchRules {
    Default,
    WithFn(fn(bytes: &[u8]) -> bool),
}