| Crates.io | skimple |
| lib.rs | skimple |
| version | 2.0.1 |
| created_at | 2026-01-01 01:14:52.177201+00 |
| updated_at | 2026-01-09 21:24:30.443469+00 |
| description | A simple interface for the skim fuzzy-matcher |
| homepage | https://github.com/dotzenith/skimple |
| repository | https://github.com/dotzenith/skimple |
| max_upload_size | |
| id | 2015575 |
| size | 12,941 |
skimple is a simple interface for skim fuzzy-matcher
use skimple::SkimpleMatcher;
let matcher = SkimpleMatcher::default();
let haystack = ["Mort", "Sourcery", "Wyrd Sisters", "Pyramids", "Guards! Guards!"];
let needle = "gards";
let result = matcher.fuzzy_best(&haystack, &needle);
assert_eq!(result, Ok("Guards! Guards!"));
use skimple::SkimpleMatcher;
let matcher = SkimpleMatcher::default();
let haystack = ["Mort", "Sourcery", "Wyrd Sisters", "Pyramids", "Guards! Guards!"];
let needle = "yr";
let result = matcher.fuzzy_all(&haystack, &needle);
assert_eq!(result, Ok(vec!["Wyrd Sisters", "Pyramids"]));
2.0.1 - Add feature to return all matches, and not just the best