fuzzypath

Crates.iofuzzypath
lib.rsfuzzypath
version2.0.0
sourcesrc
created_at2021-10-17 17:25:20.844361
updated_at2021-10-17 17:51:17.618586
descriptionQuick & dirty fuzzy path comparison
homepage
repositoryhttps://github.com/WilliamVenner/fuzzypath
max_upload_size
id466314
size9,344
William (WilliamVenner)

documentation

README

crates.io

docs.rs

๐Ÿงน fuzzypath

Quick & dirty fuzzy path comparison

Comparison rules

  • โœ… Case insensitive
  • โœ… Backslashes are normalized to forward slashes
  • โœ… Trailing slashes are removed, except for root slash (for absolute POSIX paths)
  • โœ… Repeating slashes are normalized to a single slash
  • โŒ Comparing a Windows path with a POSIX path will not work if either is absolute (Windows paths with a drive letter, POSIX paths with a preceeding slash)
  • โŒ Comparing a Windows UNC path will not work with any POSIX path
  • โŒ POSIX paths can contain backslashes in file names, but Windows paths cannot - these will be normalized to forward slashes and you will lose that information

Usage

Add fuzzypath to your Cargo.toml dependencies:

[dependencies]
fuzzypath = "1"

Serde

To enable Serde serialization and deserialization, use the crate feature serde

[dependencies]
fuzzypath = { version = "1", features = ["serde"] }
Commit count: 10

cargo fmt