decollate 0.0.1

Blazing-fast, locale-aware, context-free string collation
Documentation
  • Coverage
  • 87.5%
    14 out of 16 items documented2 out of 8 items with examples
  • Size
  • Source code size: 22.21 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.17 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 26s Average build duration of successful builds.
  • all releases: 26s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • deyanovich

decollate

Blazing-fast string collation, deconstructed.

decollate is a high-performance, context-free collation library that provides locale-aware string comparison by deconstructing complex collation rules to their essential components.

Status

⚠️ This project is in early development. The API is unstable and functionality is limited.

Goals

  • Provide collation that is 100x faster than ICU for languages without digraphs
  • Support the top 50 languages using compressed CLDR data
  • Maintain 99.999% compatibility with ICU for supported languages
  • Minimal footprint with zero runtime dependencies

Usage

[dependencies]
decollate = "0.0.1"
use decollate::Collator;
use std::cmp::Ordering;

let collator = Collator::new("en").unwrap();
assert_eq!(collator.compare("a", "b"), Ordering::Less);