[package]
edition = "2021"
name = "infer2"
version = "0.21.1"
authors = ["Bojan <dbojan@gmail.com>"]
build = false
exclude = [
"/testdata",
"/tests",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Small crate to infer file type based on magic number signatures"
homepage = "https://github.com/ldclabs/infer2"
documentation = "https://docs.rs/infer2"
readme = "README.md"
keywords = [
"magic-number",
"filetype",
"mime",
"mime-types",
"no_std",
]
license = "MIT"
repository = "https://github.com/ldclabs/infer2"
[features]
alloc = []
default = ["std"]
std = [
"alloc",
"cfb",
]
[lib]
name = "infer2"
path = "src/lib.rs"
[[example]]
name = "file"
path = "examples/file.rs"
required-features = ["std"]
[dependencies.cfb]
version = "0.14"
optional = true