libmagic-rs 0.4.1

A pure-Rust implementation of libmagic for file type identification
Documentation
# Auto detect text files and perform LF normalization
* text=auto eol=lf

# Rust files
*.rs text diff=rust
Cargo.toml text
Cargo.lock text

# Docker files
Dockerfile text
*.dockerfile text
docker-compose*.yml text
.dockerignore text

# Documentation
*.md text diff=markdown
*.txt text
*.rst text
LICENSE text

# Config files
*.json text
*.toml text
*.yml text
*.yaml text
*.ini text
*.cfg text
*.conf text

# Web files
*.html text diff=html
*.html.j2 text diff=html
*.css text diff=css
*.js text
*.jsx text
*.ts text
*.tsx text
*.vue text

# SQL files
*.sql text

# Binary files
*.db binary
*.p binary
*.pkl binary
*.pickle binary
*.pyc binary
*.pyd binary
*.pyo binary
*.pdb binary

# Image files
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.svg text

# Test files
**/*.result binary
**/*.testfile binary

# Font files
*.ttf binary
*.eot binary
*.woff binary
*.woff2 binary

# Archive files
*.zip binary
*.7z binary
*.gz binary
*.tar binary
*.tgz binary
*.rar binary

# Executables
*.exe binary
*.dll binary
*.so binary
*.dylib binary

.env text=utf-8 eol=lf