{"id":57881,"library":"infer","title":"Infer","description":"A small crate to infer file type based on magic number signatures.","status":"active","version":"0.19.0","language":"rust","source_language":null,"source_url":"https://github.com/bojand/infer","tags":["file-type","magic-bytes","detection","utility"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ninfer = \"0.19.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add infer","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Infer","correct":"use infer::Infer;"}],"quickstart":{"code":"use infer::Infer;\n\nfn main() {\n    let infer = Infer::new();\n    let buf = &[0xFF, 0xD8, 0xFF, 0xE0]; // JPEG header\n    let kind = infer.get(buf).unwrap();\n    println!(\"File type: {}\", kind.mime_type());\n}","lang":"rust","description":"Detect file type from magic bytes."},"warnings":[],"env_vars":null,"search_vec":"'base':9 'byte':19 'crate':4 'detect':20 'file':7,15 'file-typ':14 'infer':1,6 'magic':11,18 'magic-byt':17 'number':12 'signatur':13 'small':3 'type':8,16 'util':21","created_at":"2026-06-16T16:03:35.449547+00:00","updated_at":"2026-06-16T16:03:35.449547+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/bojand/infer","github":"https://github.com/bojand/infer","docs":"https://docs.rs/infer/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}