matchy-match-mode

Crates.iomatchy-match-mode
lib.rsmatchy-match-mode
version2.0.0
created_at2025-12-29 07:09:58.723052+00
updated_at2025-12-29 07:09:58.723052+00
descriptionShared MatchMode enum for matchy workspace (internal)
homepage
repositoryhttps://github.com/matchylabs/matchy
max_upload_size
id2010119
size3,694
Seth Hall (sethhall)

documentation

README

matchy-match-mode

Shared match mode enum for the matchy workspace.

Overview

This tiny crate (10 lines, zero dependencies) provides the MatchMode enum used across all matchy crates to specify case-sensitive or case-insensitive matching.

pub enum MatchMode {
    CaseSensitive,
    CaseInsensitive,
}

Why a separate crate?

By extracting MatchMode into its own crate, we eliminate circular dependencies between other workspace crates that all need to reference this shared type.

Usage

use matchy_match_mode::MatchMode;

let mode = MatchMode::CaseInsensitive;

Features

  • Zero dependencies
  • Copy + Clone + Debug + PartialEq + Eq
  • Used by: matchy-glob, matchy-ac, matchy-paraglob, matchy-literal-hash, matchy-format
Commit count: 0

cargo fmt