qubit-mime

MIME type detection utilities for Rust based on filename glob rules and content magic

Rust CI Coverage Crates.io Rust License

MIME type detection utilities for Rust services based on filename glob rules and content magic rules.

Overview

Qubit MIME is a repository-backed MIME type detector for Rust. It uses the freedesktop shared MIME-info data model: canonical MIME type names, aliases, localized comments, filename globs, content magic rules, and super-type relationships.

The public surface is organized into three layers:

Design Goals

Features

Filename Detection

Content Magic Detection

Repository Metadata

Detection Entrypoints

Media Stream Classification

Installation

Add this to your Cargo.toml:

[dependencies]
qubit-mime = "0.6"

Quick Start

Detect from filename and content

use qubit_mime::{
    MimeError,
    MimeDetectionPolicy,
    RepositoryMimeDetector,
};

fn main() -> Result<(), MimeError> {
    let detector = RepositoryMimeDetector::new()?;

    let by_name = detector.detect_by_filename("photo.JPG");
    assert_eq!(Some("image/jpeg".to_owned()), by_name);

    let by_content = detector.detect_by_content(b"%PDF-1.7\n");
    assert_eq!(Some("application/pdf".to_owned()), by_content);

    let combined = detector.detect_bytes(
        b"%PDF-1.7\n",
        Some("report.pdf"),
        MimeDetectionPolicy::VerifyContent,
    );
    assert_eq!(Some("application/pdf".to_owned()), combined);

    Ok(())
}

Use the Rust-style MimeDetector trait

MimeDetectorRegistry creates boxed or shared MimeDetector trait objects from MimeConfig. Code that only needs MIME names can depend on the trait instead of a concrete detector.

use qubit_mime::{
    MimeConfig,
    MimeDetectionPolicy,
    MimeDetector,
    MimeDetectorRegistry,
    MimeError,
};

fn detect_upload(detector: &dyn MimeDetector, filename: &str, content: &[u8]) -> Option<String> {
    detector.detect(content, Some(filename), MimeDetectionPolicy::VerifyContent)
}

fn main() -> Result<(), MimeError> {
    let detector =
        MimeDetectorRegistry::default_registry()?.create_default_box(&MimeConfig::default())?;

    assert_eq!(
        Some("application/pdf".to_owned()),
        detect_upload(detector.as_ref(), "upload.bin", b"%PDF-1.7\n"),
    );
    Ok(())
}

Configure global defaults with Config

MimeConfig::default() returns a snapshot of the current global default MIME configuration. Use MimeConfig::reload_default() to replace it from an rs-config Config, or MimeConfig::reload_default_from_env() to load from Config::from_env().

use qubit_config::Config;
use qubit_mime::{
    CONFIG_MEDIA_STREAM_CLASSIFIER_DEFAULT,
    CONFIG_MIME_AMBIGUOUS_MIME_MAPPING,
    CONFIG_MIME_DETECTOR_DEFAULT,
    CONFIG_MIME_DETECTOR_FALLBACKS,
    CONFIG_MIME_ENABLE_PRECISE_DETECTION,
    CONFIG_MIME_MAX_BUFFER_SIZE,
    CONFIG_MIME_PRECISE_DETECTION_PATTERNS,
    DEFAULT_AMBIGUOUS_MIME_MAPPING,
    DEFAULT_MIME_MAX_BUFFER_SIZE,
    DEFAULT_PRECISE_DETECTION_PATTERNS,
    MimeConfig,
    MimeDetector,
    MimeDetectorRegistry,
    MimeError,
};

fn main() -> Result<(), MimeError> {
    let original = MimeConfig::default();
    let mut config = Config::new();
    config.set(CONFIG_MIME_DETECTOR_DEFAULT, "repository")?;
    config.set(CONFIG_MIME_DETECTOR_FALLBACKS, "")?;
    config.set(CONFIG_MEDIA_STREAM_CLASSIFIER_DEFAULT, "ffprobe")?;
    config.set(CONFIG_MIME_ENABLE_PRECISE_DETECTION, true)?;
    config.set(CONFIG_MIME_PRECISE_DETECTION_PATTERNS, DEFAULT_PRECISE_DETECTION_PATTERNS)?;
    config.set(CONFIG_MIME_AMBIGUOUS_MIME_MAPPING, DEFAULT_AMBIGUOUS_MIME_MAPPING)?;
    config.set(CONFIG_MIME_MAX_BUFFER_SIZE, DEFAULT_MIME_MAX_BUFFER_SIZE)?;

    MimeConfig::reload_default(&config)?;
    let detector =
        MimeDetectorRegistry::default_registry()?.create_default_box(&MimeConfig::default())?;

    assert_eq!(
        Some("application/pdf".to_owned()),
        detector.detect_by_filename("document.pdf"),
    );

    MimeConfig::set_default(original);
    Ok(())
}

Select detectors with registry and fallbacks

MimeDetectorRegistry::create_default_box() and MimeDetectorRegistry::create_default_arc() use the configured default detector first. If that provider is unknown, unavailable, or fails to initialize, the configured fallback chain is tried in order. Set the default selector to auto to choose the highest-priority available provider from the registry.

The default registry starts with the built-in providers returned by MimeDetectorRegistry::builtin(). Extension crates can make their providers available to all default registry snapshots by calling MimeDetectorRegistry::register_default(provider) during application startup. After registration succeeds, later MimeDetectorRegistry::default_registry() snapshots see the provider through the same process-wide registry.

MimeDetectorRegistry::default_registry() returns a snapshot clone of the current process-wide registry. Mutating that snapshot does not update the global registry. Use register_default() when a provider should become globally visible, and use an explicit MimeDetectorRegistry::builtin() or MimeDetectorRegistry::new() when a caller needs isolation, tests a custom provider, or wants to restrict which providers can be selected.

Global registration is process-local and should normally happen once, before creating detectors from configuration. Duplicate provider ids or aliases are reported as MimeError::DuplicateDetectorName; poisoned global registry locks are reported as MimeError::DetectorBackend.

Built-in detector selectors:

SelectorAliasesBehavior
repositoryrepository-mime-detectorUses the embedded freedesktop MIME repository
filefile-command, file-command-mime-detectorUses the repository for filenames and file --mime-type --brief for local content
auto-Chooses available providers by priority, then provider id
use qubit_config::Config;
use qubit_mime::{
    CONFIG_MIME_DETECTOR_DEFAULT,
    CONFIG_MIME_DETECTOR_FALLBACKS,
    MimeConfig,
    MimeDetector,
    MimeDetectorRegistry,
    MimeError,
};

fn main() -> Result<(), MimeError> {
    let mut source = Config::new();
    source.set(CONFIG_MIME_DETECTOR_DEFAULT, "file")?;
    source.set(CONFIG_MIME_DETECTOR_FALLBACKS, "repository")?;

    let config = MimeConfig::from_config(&source)?;
    let detector = MimeDetectorRegistry::default_registry()?.create_default_box(&config)?;

    assert_eq!(
        Some("image/png".to_owned()),
        detector.detect_by_filename("image.png"),
    );
    Ok(())
}

Use an explicit registry when you need custom providers:

use qubit_mime::{
    MimeConfig,
    MimeDetector,
    MimeDetectorRegistry,
    MimeError,
};

fn main() -> Result<(), MimeError> {
    let registry = MimeDetectorRegistry::builtin();
    let detector = registry.create_box("repository-mime-detector", &MimeConfig::default())?;

    assert_eq!(
        Some("text/plain".to_owned()),
        detector.detect_by_filename("notes.txt"),
    );
    Ok(())
}

Registry selection uses these error categories:

ErrorMeaning
DuplicateDetectorNameA provider id or alias conflicts with an existing provider
UnknownDetectorNo registered provider matches the requested selector
DetectorUnavailableThe provider exists but its backend is not available in this process environment
NoAvailableDetectorEvery default or fallback candidate failed
DetectorBackendA provider backend failed while initializing or detecting

Configuration keys

MimeConfig::from_config() accepts both logical keys and environment-style keys. Environment variables use the environment-style names. List values can be arrays or scalar strings split on , and ;; empty items are ignored. Ambiguous MIME mapping values are split on ; as extension:video-mime,audio-mime.

SettingLogical keyEnvironment keyDefault
Default MIME detectormime.detector.defaultQUBIT_MIME_DETECTOR_DEFAULTrepository
MIME detector fallbacksmime.detector.fallbacksQUBIT_MIME_DETECTOR_FALLBACKSempty
Media stream classifiermime.media.stream.classifier.defaultQUBIT_MEDIA_STREAM_CLASSIFIER_DEFAULTffprobe
Precise detection enabledmime.enable.precise.detectionQUBIT_MIME_ENABLE_PRECISE_DETECTIONtrue
Precise detection patternsmime.precise.detection.patternsQUBIT_MIME_PRECISE_DETECTION_PATTERNSwebm,ogg
Ambiguous MIME mappingmime.ambiguous.mime.mappingQUBIT_MIME_AMBIGUOUS_MIME_MAPPINGwebm:video/webm,audio/webm;ogg:video/ogg,audio/ogg
Maximum detector buffer sizemime.max.buffer.sizeQUBIT_MIME_MAX_BUFFER_SIZE16777216

Detect a filesystem path

use qubit_mime::{
    MimeDetectionPolicy,
    MimeError,
    RepositoryMimeDetector,
};

fn main() -> Result<(), MimeError> {
    let detector = RepositoryMimeDetector::new()?;
    let path = std::env::temp_dir().join("qubit-mime-example.pdf");

    std::fs::write(&path, b"%PDF-1.7\n")?;
    let detected = detector.detect_file(&path, MimeDetectionPolicy::VerifyContent)?;
    std::fs::remove_file(&path).ok();

    assert_eq!(Some("application/pdf".to_owned()), detected);
    Ok(())
}

Use the system file command detector

FileCommandMimeDetector uses the embedded repository for filename candidates and file --mime-type --brief for content detection.

use std::time::Duration;

use qubit_command::CommandRunner;
use qubit_mime::{
    FileCommandMimeDetector,
    MimeDetectionPolicy,
    MimeDetector,
    MimeError,
};

fn main() -> Result<(), MimeError> {
    if !FileCommandMimeDetector::is_available() {
        return Ok(());
    }

    let detector = FileCommandMimeDetector::new();
    let detected = detector.detect(
        b"%PDF-1.7\n",
        Some("report.bin"),
        MimeDetectionPolicy::VerifyContent,
    );

    assert_eq!(Some("application/pdf".to_owned()), detected);

    let runner = CommandRunner::new()
        .timeout(Duration::from_secs(2))
        .disable_logging(true);
    let detector = FileCommandMimeDetector::new().with_command_runner(runner);
    assert!(detector.command_runner().configured_timeout().is_some());

    Ok(())
}

Classify media streams with FFprobe

FfprobeCommandMediaStreamClassifier classifies a media file as no media, audio-only, video-only, or video with audio.

use std::path::Path;

use qubit_mime::{
    FfprobeCommandMediaStreamClassifier,
    MediaStreamClassifier,
    MediaStreamType,
    MimeError,
};

fn main() -> Result<(), MimeError> {
    if !FfprobeCommandMediaStreamClassifier::is_available() {
        return Ok(());
    }

    let classifier = FfprobeCommandMediaStreamClassifier::new();
    let stream_type = classifier.classify_file(Path::new("sample.webm"))?;

    assert!(matches!(
        stream_type,
        MediaStreamType::AudioOnly
            | MediaStreamType::VideoOnly
            | MediaStreamType::VideoWithAudio
            | MediaStreamType::None,
    ));
    Ok(())
}

Detect from a seekable reader

detect_reader reads up to the repository's required magic byte count and then restores the original stream position.

use std::io::{
    Cursor,
    Seek,
};

use qubit_mime::{
    MimeDetectionPolicy,
    MimeError,
    RepositoryMimeDetector,
};

fn main() -> Result<(), MimeError> {
    let detector = RepositoryMimeDetector::new()?;
    let mut reader = Cursor::new(b"%PDF-1.7\npayload".to_vec());

    let detected = detector.detect_reader(
        &mut reader,
        Some("document.bin"),
        MimeDetectionPolicy::VerifyContent,
    )?;
    assert_eq!(Some("application/pdf".to_owned()), detected);
    assert_eq!(0, reader.stream_position()?);

    Ok(())
}

Combined Detection Strategy

Combined detection accepts both a filename and content bytes. The MimeDetectionPolicy value makes the filename/content resolution strategy explicit at each call site.

use qubit_mime::{
    MimeDetectionPolicy,
    MimeError,
    RepositoryMimeDetector,
};

fn main() -> Result<(), MimeError> {
    let detector = RepositoryMimeDetector::new()?;
    let pdf_bytes = b"%PDF-1.7\n";

    // Prefer a definitive filename result and avoid extra content inspection.
    let by_filename = detector.detect_bytes(
        pdf_bytes,
        Some("photo.jpg"),
        MimeDetectionPolicy::PreferFilename,
    );
    assert_eq!(Some("image/jpeg".to_owned()), by_filename);

    // Verify content magic when content is more authoritative.
    let by_magic = detector.detect_bytes(
        pdf_bytes,
        Some("photo.jpg"),
        MimeDetectionPolicy::VerifyContent,
    );
    assert_eq!(Some("application/pdf".to_owned()), by_magic);

    Ok(())
}

Use MimeDetectionPolicy::PreferFilename when filenames come from a trusted source and you want less I/O. Use MimeDetectionPolicy::VerifyContent when uploaded or user-controlled filenames may be wrong or misleading.

Repository Metadata

The default detector exposes the parsed repository. Use it when you need metadata instead of just a MIME name.

use qubit_mime::{
    MimeError,
    RepositoryMimeDetector,
};

fn main() -> Result<(), MimeError> {
    let detector = RepositoryMimeDetector::new()?;
    let repository = detector.repository();

    let png = repository
        .get("image/png")
        .expect("default repository should contain image/png");

    assert_eq!("image/png", png.name());
    assert_eq!(Some("png"), png.preferred_extension());
    assert!(png.description().is_some());
    assert!(png.matches_filename("ICON.PNG"));

    let extensions = png.all_extensions();
    assert!(extensions.contains(&"png"));

    Ok(())
}

MimeRepository::detect_by_filename and MimeRepository::detect_by_content return all best candidates instead of a single string:

use qubit_mime::{
    MimeError,
    RepositoryMimeDetector,
};

fn main() -> Result<(), MimeError> {
    let detector = RepositoryMimeDetector::new()?;
    let repository = detector.repository();

    let candidates = repository.detect_by_filename("archive.tar.gz");
    assert!(!candidates.is_empty());

    for candidate in candidates {
        println!("{} {:?}", candidate.name(), candidate.description());
    }

    Ok(())
}

Custom Repository

Use MimeRepository::from_xml when you need a small test repository, a product specific MIME database, or a database generated from another source.

use qubit_mime::{
    MimeError,
    MimeRepository,
    RepositoryMimeDetector,
};

fn main() -> Result<(), MimeError> {
    let xml = r#"
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-example">
    <comment>Example bundle</comment>
    <alias type="application/example"/>
    <glob pattern="*.example" weight="80"/>
    <magic priority="90">
      <match type="string" value="EXAMPLE" offset="0"/>
    </magic>
  </mime-type>
</mime-info>
"#;

    let repository = MimeRepository::from_xml(xml)?;
    let detector = RepositoryMimeDetector::with_repository(&repository);

    assert_eq!(
        Some("application/x-example".to_owned()),
        detector.detect_by_filename("demo.example"),
    );
    assert_eq!(
        Some("application/x-example".to_owned()),
        detector.detect_by_content(b"EXAMPLE payload"),
    );

    let mime_type = repository
        .get("application/example")
        .expect("alias should resolve to the canonical MIME type");
    assert_eq!("application/x-example", mime_type.name());
    assert_eq!(Some("example"), mime_type.preferred_extension());

    Ok(())
}

Low-Level Rule Types

The low-level types are useful in tests and integrations that need to inspect or validate MIME rules directly.

use qubit_mime::{
    MagicValueType,
    MimeError,
    MimeGlob,
    MimeMagic,
    MimeMagicMatcher,
    MimeType,
};

fn main() -> Result<(), MimeError> {
    let glob = MimeGlob::new("*.png", MimeGlob::DEFAULT_WEIGHT, false)?;
    assert!(glob.matches("ICON.PNG"));

    let matcher = MimeMagicMatcher::new(
        MagicValueType::String,
        0,
        0,
        b"\x89PNG\r\n\x1a\n".to_vec(),
        None,
        vec![],
    )?;
    let magic = MimeMagic::new(80, vec![matcher]);

    let png = MimeType::builder("image/png")
        .description("en", "PNG image")
        .alias("image/x-png")
        .glob(glob)
        .magic(magic)
        .build();

    assert_eq!("image/png", png.name());
    assert_eq!(Some("png"), png.preferred_extension());
    assert!(png.matches_filename("icon.png"));
    assert!(png.magics()[0].matches(b"\x89PNG\r\n\x1a\npayload"));

    Ok(())
}

API Reference

MimeDetector

MethodDescription
MimeDetectorRegistry::builtin()Create an isolated registry with only built-in detector providers
MimeDetectorRegistry::default_registry()Snapshot the process-wide default detector registry
MimeDetectorRegistry::register_default(provider)Register an external detector provider globally
MimeDetectorRegistry::register(provider)Register an external detector provider in an explicit registry
MimeDetectorRegistry::create_box(name, config)Create a boxed detector by provider id or alias
MimeDetectorRegistry::create_arc(name, config)Create a shared detector by provider id or alias
MimeDetectorRegistry::create_default_box(config)Resolve the configured default, auto, and fallback chain into a boxed detector
MimeDetectorRegistry::create_default_arc(config)Resolve the configured default, auto, and fallback chain into a shared detector
MimeDetectorProviderFactory trait for pluggable detector implementations
detect_by_filename(filename)Detect one MIME name from filename
detect_by_content(bytes)Detect one MIME name from content bytes
detect(bytes, filename, policy)Detect from bytes and optional filename

RepositoryMimeDetector

MethodDescription
new()Create a detector backed by the embedded freedesktop repository
with_repository(repository)Create a detector borrowing an explicit repository
with_repository_and_config(repository, config)Create a detector borrowing an explicit repository and MIME configuration
repository()Borrow the underlying repository
detect_by_filename(filename)Return the first MIME name matched by filename
detect_by_content(bytes)Return the first MIME name matched by content magic
detect_bytes(bytes, filename, policy)Detect from bytes and optional filename
detect_reader(reader, filename, policy)Detect from a Read + Seek reader and restore its position
detect_file(file, policy)Open and detect a local file path

FileCommandMimeDetector

MethodDescription
new()Create a detector backed by the embedded repository and the system file command
with_repository(repository)Create a detector borrowing an explicit repository
with_repository_and_runner(repository, runner)Create a detector with an explicit qubit_command::CommandRunner
with_repository_runner_and_config(repository, runner, config)Create a detector with explicit repository, runner, and MIME configuration
command_runner()Borrow the runner used for command execution
set_command_runner(runner)Replace the runner used for command execution
is_available()Check whether the file command can be executed
detect_file_by_content(file)Detect a local file using command output only
detect_file(file, policy)Detect a local file by filename and command-backed content inspection
detect_reader(reader, filename, policy)Detect a seekable reader through the file-backed path

MediaStreamClassifier

MethodDescription
MediaStreamClassifierRegistry::builtin()Create an isolated registry with built-in classifier providers
MediaStreamClassifierRegistry::default_registry()Snapshot the process-wide default classifier registry
MediaStreamClassifierRegistry::register_default(provider)Register an external classifier provider globally
MediaStreamClassifierRegistry::register(provider)Register an external classifier provider in an explicit registry
MediaStreamClassifierRegistry::create_box(name, config)Create a boxed classifier by provider id or alias
MediaStreamClassifierRegistry::create_arc(name, config)Create a shared classifier by provider id or alias
MediaStreamClassifierRegistry::create_default_box(config)Resolve the configured default or auto into a boxed classifier
MediaStreamClassifierRegistry::create_default_arc(config)Resolve the configured default or auto into a shared classifier
MediaStreamClassifierProviderFactory trait for pluggable classifier implementations
classify_file(file)Classify a local media file
classify_reader(reader)Classify media content from a reader
classify_content(bytes)Classify in-memory media content

FfprobeCommandMediaStreamClassifier

MethodDescription
new()Create an FFprobe-backed classifier
is_available()Check whether ffprobe can be executed
classify_stream_listing(output)Classify parsed FFprobe codec_type output
set_working_directory(directory)Set the command working directory

MimeRepository

MethodDescription
from_xml(xml)Parse a freedesktop shared MIME-info XML document
empty()Create an empty repository
all()Return all parsed MIME types in database order
get(name)Resolve a canonical MIME name or alias
max_test_bytes()Return the maximum byte prefix needed by magic rules
detect_by_filename(filename)Return best filename candidates
detect_by_content(bytes)Return best content candidates
detect(filename, bytes, policy)Merge filename and content detection

Metadata and Rule Types

TypePurpose
MimeTypeMetadata and rules for one MIME type
MimeTypeBuilderBuilder for standalone MimeType values
MimeGlobFilename glob rule with weight and case-sensitivity
MimeMagicPriority-ranked collection of magic matchers
MimeMagicMatcherOne magic matcher with offset, value, mask, and children
MagicValueTypeFreedesktop magic value type enum
MediaStreamTypeAudio/video stream classification result
MimeConfigPrecise detection and ambiguous media mapping configuration
MimeErrorError type for XML parsing, rule validation, and I/O

MimeConfig

MethodDescription
from_config(config)Parse MIME configuration from a qubit_config::Config
from_env()Parse MIME configuration from Config::from_env()
default()Clone the current global default MIME configuration
set_default(config)Replace the global default used by future default instances
reload_default(config)Parse and replace the global default from a Config
reload_default_from_env()Parse and replace the global default from process environment
mime_detector_default()Read the configured detector selector
mime_detector_fallbacks()Read the configured detector fallback chain
media_stream_classifier_default()Read the configured media classifier selector

Module Layout

The source layout is grouped by detector, classifier, and repository concerns:

src/
  mime_detector.rs              # top-level MimeDetector trait
  mime_config.rs                # precise detection configuration
  detector/                     # detector implementations
  classifier/                   # media stream classifier interface and implementations
  repository/                   # MIME database, glob, magic, and metadata types

Use the root re-exports for normal application code. Use the nested modules when you need to inspect or extend a specific detector, classifier, or repository component.

Detection Rules

Filename Rules

Filename detection uses only the final path component. Matches are ranked by:

  1. Higher glob weight.
  2. Longer glob pattern when weights tie.
  3. Database order when the repository returns multiple equal candidates.

Content Rules

Content detection checks the provided byte prefix against each MIME type's direct magic rules. Matches are ranked by higher magic priority. Use repository.max_test_bytes() to know the largest useful prefix length for a repository.

Combined Rules

Combined detection first evaluates filename globs. When there is exactly one filename match and magic checking is not forced, that filename match is used. Otherwise, content magic is evaluated and merged with filename candidates.

Comparison with Java common-mime

AspectJava common-mimeQubit MIME
Database modelFreedesktop shared MIME-infoSame model
Filename detectionGlob rulesGlob rules
Content detectionMagic rulesMagic rules
Alias lookupSupportedSupported
Detector interfaceMimeDetectorMimeDetector trait
Media stream classifierMediaStreamClassifierMediaStreamClassifier trait
Repository detectorRepositoryMimeDetectorRepositoryMimeDetector
File command detectorFileCommandMimeDetectorFileCommandMimeDetector
FFprobe classifierFfprobeCommandMediaStreamClassifierFfprobeCommandMediaStreamClassifier
Repository loadingXML resourceEmbedded XML or explicit XML
Return styleJava objects and collectionsRust Option, slices, and vectors
ErrorsJava exceptionsConcrete MimeError

Testing & Code Coverage

This project keeps tests under tests/ and validates repository parsing, filename matching, content magic matching, reader/path detection, and coverage thresholds.

Running Tests

# Run all tests
cargo test

# Generate a coverage report
./coverage.sh

# Generate a text format coverage report
./coverage.sh text

# Run CI checks (format, clippy, tests, docs, coverage, audit)
./ci-check.sh

Dependencies

Runtime dependencies are intentionally small:

License

Copyright (c) 2026. Haixing Hu, Qubit Co. Ltd. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

<http://www.apache.org/licenses/LICENSE-2.0>

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

See LICENSE for the full license text.

Contributing

Contributions are welcome. Please keep changes aligned with the existing Rust project structure and run ./ci-check.sh before opening a pull request.

Author

Haixing Hu - Qubit Co. Ltd.

More Rust libraries from Qubit are published under the qubit-ltd GitHub organization.

---

Repository: https://github.com/qubit-ltd/rs-mime