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

#115 in Data structures

Download history 4038/week @ 2023-10-24 3899/week @ 2023-10-31 4059/week @ 2023-11-07 4455/week @ 2023-11-14 5204/week @ 2023-11-21 6310/week @ 2023-11-28 6732/week @ 2023-12-05 6251/week @ 2023-12-12 5651/week @ 2023-12-19 4391/week @ 2023-12-26 5688/week @ 2024-01-02 6213/week @ 2024-01-09 6600/week @ 2024-01-16 7247/week @ 2024-01-23 7868/week @ 2024-01-30 5592/week @ 2024-02-06

28,157 downloads per month
Used in 5 crates (4 directly)



Succinct data structures in Rust

Documentation Crates.io

Sucds provides some succinct data structures written in Rust.




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


Licensed under either of

at your option.


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$.


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


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