2 stable releases

2.0.0 Nov 23, 2019
1.0.0 Nov 16, 2019

#4 in #saca

Download history 354/week @ 2024-07-20 262/week @ 2024-07-27 304/week @ 2024-08-03 283/week @ 2024-08-10 401/week @ 2024-08-17 379/week @ 2024-08-24 279/week @ 2024-08-31 240/week @ 2024-09-07 260/week @ 2024-09-14 307/week @ 2024-09-21 470/week @ 2024-09-28 257/week @ 2024-10-05 256/week @ 2024-10-12 483/week @ 2024-10-19 339/week @ 2024-10-26 225/week @ 2024-11-02

1,344 downloads per month
Used in 12 crates (3 directly)

MIT license

87KB
2.5K SLoC

C 2K SLoC // 0.1% comments Rust 213 SLoC

cdivsufsort

This crate contains Yuta Mori's C codebase libdivsufsort, as found on:

...and a minimal Rust interface to it.

Changes

There are no functional changes to the codebase, however:

  • Parts of the code have been formatted with clang-format (LLVM style)
  • Many of the loops (for, do..while) have been given names in comments, for ease of translation.
  • The codebase contains "cross-checking" facilities (the macros crosscheck, SA_dump, etc.) so its behavior can be compared with the Rust port.

Cross-checking is only built when the crosscheck feature is enabled. It is not intended for general use, only for debugging the divsufsort crate.

Further reading

The divsufsort algorithm is based on "",

Authors

The original code was written by Yuta Mori, and its essence is not changed here.

License

cdivsufsort is released under the MIT license, same as the original.

See the LICENSE and c-sources/LICENSE files for details.

Dependencies

~93–430KB