The Rust ecosystem is full of a data structure implementations
that may be useful in machine learning.
You can find multi-dimensional arrays, matrices, graphs,
and a large list of tree libraries.
The list below is incomplete, so for more specific data structures
don't forget to search crates.io.
Graph data structure library. Provides graph types and graph algorithms.
License: MIT OR Apache-2.0
Last Commit: 2026-08-23
Last Published: 2025-09-30
A collection of numeric types and traits for Rust, including bigint,
complex, rational, range iterators, generic integers, and more!
License: MIT OR Apache-2.0
Last Commit: 2026-07-07
Last Published: 2025-01-25
An n-dimensional array for general elements and for numerics. Lightweight array views and slicing; views support chunking and splitting.
License: MIT OR Apache-2.0
Last Commit: 2026-07-18
Last Published: 2026-01-10
Rust implementation of Apache Arrow
License: Apache-2.0
Last Commit: 2026-08-31
Last Published: 2026-08-06
DataFrame library based on Apache Arrow
License: MIT
Last Commit: 2026-08-31
Last Published: 2026-08-06
A sparse matrix library
License: MIT OR Apache-2.0
Last Commit: 2026-07-28
Last Published: 2026-07-26
Machine Learning in Rust.
License: Apache-2.0
Last Commit: 2026-08-26
Last Published: 2026-08-26
A directed acyclic graph data structure library. It is Implemented on top of petgraph's Graph data structure and attempts to follow similar conventions where suitable.
License: MIT/Apache-2.0
Last Commit: 2025-04-17
Last Published: 2025-04-17
A bioinformatics library for Rust. This library provides implementations of many algorithms and data structures that are useful for bioinformatics, but also in other fields.
License: MIT
Last Commit: 2026-07-27
Last Published: 2026-06-29
A fast BVH using SAH
License: MIT
Last Commit: 2025-11-16
Last Published: 2025-11-16
High-level bindings for Faiss, the vector similarity search engine
License: MIT/Apache-2.0
Last Commit: 2025-11-15
Last Published: 2025-11-15
Reader and writer for common word embedding formats
License: MIT OR Apache-2.0
Last Commit: 2023-10-10
Last Published: 2023-10-10
rust2vec
[
crate ·
repo ·
docs
]
archived
Reader and writer for common word embedding formats
License: Apache-2.0
Last Commit: 2019-03-23
Last Published: 2019-03-23
A low-level modular, extensible GPGPU compute library with cross-platform support
License: MIT
Last Commit: 2023-01-20
Last Published: 2020-04-09
Rust wrappers for NGT nearest neighbor search.
License: Apache-2.0
Last Commit: 2024-05-18
Last Published: 2024-05-18
A roulette wheel selection collection, used in genetic algorithm
for fitness proportionate selection.
License: AML
Last Commit: 2017-02-25
Last Published: 2017-02-25
N-dimensional matrix class for Rust
License: MIT
Last Commit: 2021-05-02
Last Published: 2016-09-23
dataframe structure and operations
License: MIT
Last Commit: 2018-07-24
Last Published: 2016-12-28
N-dimensional dense arrays.
License: BSD-2-Clause
Last Commit: 2017-05-24
Last Published: 2016-11-14