Rust Data structures

Open-source Rust projects categorized as Data structures

Top 23 Rust Data structure Projects

Data structures
  1. Rust

    All Algorithms implemented in Rust (by TheAlgorithms)

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. crossbeam

    Tools for concurrent programming in Rust

    Project mention: Hyperbridge: Fast multi-producer, multi-consumer unbounded channel in Rust | news.ycombinator.com | 2024-02-09

    Crossbeam isn't async[0]. It can multiplex with itself (via the `select!` macro), but not with anything else.

    [0]: https://github.com/crossbeam-rs/crossbeam/issues/896

  4. rust-algorithms

    Common data structures and algorithms in Rust

  5. dashmap

    Blazing fast concurrent HashMap for Rust.

  6. hora

    πŸš€ efficient approximate nearest neighbor search algorithm collections library written in Rust πŸ¦€ .

  7. heapless

    Heapless, `static` friendly data structures

  8. nutype

    Rust newtype with guarantees πŸ‡ΊπŸ‡¦ πŸ¦€

  9. bon

    Next-gen compile-time-checked builder generator, named function's arguments, and more!

    Project mention: Pulumi WASM/Rust devlog #1 | dev.to | 2024-12-28

    I've migrated all the structs to bon so now they look like this

  10. rpds

    Rust persistent data structures

  11. roaring-rs

    A better compressed bitset in Rust

  12. ImHex-Patterns

    Hex patterns, include patterns and magic files for the use with the ImHex Hex Editor

    Project mention: A Hex Editor for Reverse Engineers | news.ycombinator.com | 2024-06-29

    You can download additional assets in the settings and then interpret data as encoded in various formats. I don't see CP437 in the list but the file format for encodings is straightforward, you can probably create a mapping easily.

    https://github.com/WerWolv/ImHex-Patterns/tree/master/encodi...

  13. generic-array

    Generic array types in Rust

  14. seize

    Fast, efficient, and robust memory reclamation for Rust.

  15. graph

    A library for high-performant graph algorithms. (by neo4j-labs)

  16. hypergraph

    Hypergraph is data structure library to create a directed hypergraph in which a hyperedge can join any number of vertices.

    Project mention: Show HN: HypergraphZ – A Hypergraph Implementation in Zig | news.ycombinator.com | 2024-09-09

    I see that this is a second implementation, the first being in Rust: https://github.com/yamafaktory/hypergraph

    I've found that Zig is an excellent tool for implementing data-structure-oriented libraries. Comptime genericity is simple to understand and use, providing a C interface is very easy, and libraries take an allocator, so any memory-safety issues are the consumer's problem. If you want to use it from a memory-safe language, well, all of those have C FFIs so far as I know, Rust very much included, so you can.

    A hypergraph is clearly a data structure which demands a lot of cyclic references, no getting around that, so I'm curious: can you compare and contrast the experience of implementing this in Rust vs. Zig?

  17. crdt-richtext

    Rich text CRDT that implements Peritext and Fugue

  18. staticvec

    Implements a fixed-capacity stack-allocated Vec alternative backed by an array, using const generics.

  19. crop

    🌾 A pretty fast text rope

  20. scapegoat

    Safe, fallible, embedded-friendly ordered set/map via a scapegoat tree. Validated against BTreeSet/BTreeMap. (by tnballo)

  21. leapfrog

    Lock-free concurrent and single-threaded hash map implementations using Leapfrog probing. Currently the highest performance concurrent HashMap in Rust for certain use cases.

  22. bimap-rs

    Generic bijective maps in Rust

  23. yclass

    Inspect and recreate in-memory data structures

  24. multi_index_map

    Simple and flexible multi-index containers.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Rust Data structures discussion

Log in or Post with

Rust Data structures related posts

  • Tree data structures in Rust with tree-ds (#3: Beyond The Basics)

    1 project | dev.to | 29 Jun 2024
  • TheAlgorithms/Rust: All Algorithms Implemented in Rust

    1 project | news.ycombinator.com | 7 Jan 2024
  • Nutype 0.4.0 released

    1 project | /r/rust | 23 Nov 2023
  • Roll your own auth with Rust and Protobuf

    5 projects | dev.to | 28 Oct 2023
  • generic-array 1.0, a crate for defining generically-sized arrays without const-generics.

    1 project | /r/rust | 15 Sep 2023
  • Nutype 0.3.0 released

    1 project | /r/rust | 25 Jun 2023
  • Gryf - a new graph data structure library aspiring to be convenient, versatile, correct and performant

    8 projects | /r/rust | 21 May 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 20 Jan 2025
    SaaSHub helps you find the best software and product alternatives Learn more β†’

Index

What are some of the best open-source Data structure projects in Rust? This list will help you:

# Project Stars
1 Rust 23,299
2 crossbeam 7,610
3 rust-algorithms 3,801
4 dashmap 3,200
5 hora 2,612
6 heapless 1,594
7 nutype 1,479
8 bon 1,466
9 rpds 1,347
10 roaring-rs 775
11 ImHex-Patterns 707
12 generic-array 406
13 seize 399
14 graph 387
15 hypergraph 290
16 crdt-richtext 279
17 staticvec 267
18 crop 266
19 scapegoat 254
20 leapfrog 216
21 bimap-rs 139
22 yclass 125
23 multi_index_map 104

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that Rust is
the 5th most popular programming language
based on number of references?