All Projects → robo9k → rust-magic

robo9k / rust-magic

Licence: MIT license
Rust high level bindings crate for the `libmagic` C library

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to rust-magic

File Type
Detect the file type of a Buffer/Uint8Array/ArrayBuffer
Stars: ✭ 2,386 (+10745.45%)
Mutual labels:  magic, file
Mime
.NET wrapper for libmagic
Stars: ✭ 51 (+131.82%)
Mutual labels:  file, libmagic
ic-firebase-uploader
This component is a multi-file uploader for firebase
Stars: ✭ 21 (-4.55%)
Mutual labels:  file
nim magic
Nim cell magic for JupyterLab or Juypter Python Notebooks.
Stars: ✭ 41 (+86.36%)
Mutual labels:  magic
clc
No description or website provided.
Stars: ✭ 20 (-9.09%)
Mutual labels:  magic
file-upload-with-preview
🖼 Simple file-upload utility that shows a preview of the uploaded image. Written in TypeScript. No dependencies. Works well with or without a framework.
Stars: ✭ 406 (+1745.45%)
Mutual labels:  file
file-icon-cli
Get the icon of a file or app as a PNG image (macOS)
Stars: ✭ 73 (+231.82%)
Mutual labels:  file
file-js
Abstract representation of a pathname
Stars: ✭ 13 (-40.91%)
Mutual labels:  file
lib-preferences
Lib-Preferences is a library for easy storing simple data to a Preferences.properties file in a Java(FX) & Maven desktop application.
Stars: ✭ 12 (-45.45%)
Mutual labels:  file
gologger
A concurrent, fast queue/service worker based filesystem logging system perfect for servers with concurrent connections
Stars: ✭ 16 (-27.27%)
Mutual labels:  file
cemu-smmdb
No description or website provided.
Stars: ✭ 56 (+154.55%)
Mutual labels:  file
gosearch
a fast, real-time file searching program for linux
Stars: ✭ 68 (+209.09%)
Mutual labels:  file
safe-svg
Enable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website.
Stars: ✭ 129 (+486.36%)
Mutual labels:  file
SimpleStorage
💾 Simplify Android Storage Access Framework for file management across API levels.
Stars: ✭ 498 (+2163.64%)
Mutual labels:  file
helm-fzf
Fzf using Helm as a front end
Stars: ✭ 16 (-27.27%)
Mutual labels:  file
lrkFM
Awesome, (ad) free, open source file manager for Android
Stars: ✭ 44 (+100%)
Mutual labels:  file
ser334-public
This repository contains public source files for use in SER334 (Operating Systems & Networks) at Arizona State University.
Stars: ✭ 28 (+27.27%)
Mutual labels:  magic
transfer-sh
Node.js CLI tool for easy file sharing using Transfer.sh
Stars: ✭ 24 (+9.09%)
Mutual labels:  file
file-vault
A Laravel package for encrypting and decrypting files of any size
Stars: ✭ 152 (+590.91%)
Mutual labels:  file
cheap-watch
If it works, why use something else? // Mirror of https://git.chor.date/Conduitry/cheap-watch
Stars: ✭ 64 (+190.91%)
Mutual labels:  file

rust-magic linux build status Documentation REUSE status

libmagic bindings for Rust.

Usage

Create a new Cargo project (or edit your existing one):

$ cargo new --bin magic-usage && cd magic-usage/
$ $EDITOR Cargo.toml

Add a dependency to your Cargo.toml (see Cargo doc):

[dependencies]
magic = "0.13"

Then use the magic crate according to its documentation.

MSRV

The Minimum Supported Rust Version (MSRV) is Rust 1.48 or higher.

This version might be changed in the future, but it will be done with a crate version bump.

Requirements

By default compiling rust-magic will search your system library paths for a version of libmagic.so. If you're cross-compiling, or need more control over which library is selected, see how to build rust-magic-sys.

License

This project is licensed under the MIT license (see LICENSE).

The magic-sys crate being used is licensed under the MIT license as well (see LICENSE-MIT).

The file/libmagic project is licensed under a modified BSD license (see COPYING). This crate contains partial test-data from its magic databases (rust-magic/data/tests/db-images-png is from file/magic/Magdir/images, rust-magic/data/tests/db-python is from file/magic/Magdir/python).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].