23 releases

0.8.1 Sep 30, 2023
0.8.0 Jun 8, 2023
0.7.0 Mar 26, 2023
0.6.0 Nov 23, 2022
0.1.2 Nov 28, 2021

#224 in Data structures

Download history 6327/week @ 2024-07-23 6928/week @ 2024-07-30 6430/week @ 2024-08-06 5614/week @ 2024-08-13 6383/week @ 2024-08-20 6074/week @ 2024-08-27 4910/week @ 2024-09-03 3437/week @ 2024-09-10 2931/week @ 2024-09-17 2732/week @ 2024-09-24 2072/week @ 2024-10-01 2205/week @ 2024-10-08 2498/week @ 2024-10-15 2387/week @ 2024-10-22 2541/week @ 2024-10-29 2615/week @ 2024-11-05

10,434 downloads per month
Used in 6 crates (5 directly)

MIT/Apache

225KB
4K SLoC

Succinct data structures in Rust

Documentation Crates.io

Sucds provides some succinct data structures written in Rust.

Documentation

https://docs.rs/sucds/

Limitation

This library is designed to run on 64-bit machines.

Build docs

The document can be compiled with the following command:

RUSTDOCFLAGS="--html-in-header katex.html" cargo doc --no-deps

Licensing

Licensed under either of

at your option.


lib.rs:

Succinct data structures in Rust

Sucds is a collection of succinct data structures, powerful tools to store a variety of data structures in compressed space and quickly perform operations on the compressed data.

Design policy

Thus far, many succinct data structures and their implementation techniques have been developed for a wide range of applications. To handle them in a single crate, we set up several design policies:

  • Maintain interface consistency: Sucds will adhere to a unified interface, facilitating the integration and replacement of data structures.

  • Preserve identity: Rather than offering every possible succinct data structure, Sucds will focus on providing only those that hold a competitive advantage over others.

  • Ensure safety: To avoid potential risks, Sucds will refrain from using unsafe instructions typically reserved for extremely low-level programming.

  • Remain Rust-centric: Sucds will consistently utilize Pure Rust in its implementation.

Data structures

The data structures provided in this crate are categorized as follows:

The descriptions for each category are available in the corresponding module.

Throughout this document, we write $\log_2$ with $\lg$.

Serialization/deserialization

All the data structures can be serialized or deserialized through the Serializable trait.

Limitation

This library is designed to run on 64-bit machines.

Dependencies

~200–285KB