Rust Algorithms

Open-source Rust projects categorized as Algorithms

Top 18 Rust Algorithm Projects

  • Rust

    All Algorithms implemented in Rust (by TheAlgorithms)

    Project mention: Dynamic programming solutions in Rust? | /r/rust | 2023-04-06

    This repo could suit your needs TheAlgorithms

  • rust-algorithms

    Common data structures and algorithms in Rust

    Project mention: Anything C can do Rust can do Better | | 2022-12-01

    Algorithm Cookbook in Rust - Aram Ebtekar

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • linfa

    A Rust machine learning framework.

    Project mention: Why is Rust not more popular in ML and secure edge computing? | /r/rust | 2022-11-13
  • cv

    Rust CV mono-repo. Contains pure-Rust dependencies which attempt to encapsulate the capability of OpenCV, OpenMVG, and vSLAM frameworks in a cohesive set of APIs.

    Project mention: Good example of high performance Rust project without unsafe code? | /r/rust | 2022-08-02

    Rust can absolutely be used without unsafe to create some of the fastest code out there, but you need to try and use data-oriented design where possible to make things flow smoothly and avoid runtime checks. The hardest thing to use data-oriented design for, in my opinion, is graphs. I find that actor systems can be used instead of graphs, but it is difficult. Generally I end up using slotmap to make multiple arenas and then putting them into one large object with lots of methods to operate on the graph structure. If you want an example of that, this is probably the most complicated code I have made this way: It may not be entirely helpful to understand the whole codebase, but if you are curious to see how I do graphs in Rust with slotmap, this can be a good reference.

  • graph

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

    Project mention: Who ranks better? Memgraph vs. NetworkX PageRank | | 2022-11-23

    This is a very interesting benchmark! I'd like to add a library to the comparison, which has recently been released.

    It's called graph-mate ( and it's a wrapper around a Rust implementation for parallel graph algorithms ( that a friend and I work on.

    We created a Jupyter notebook that loads the same Wikipedia articles and runs page rank with the same parameters:

  • runiq

    An efficient way to filter duplicate lines from input, à la uniq.

    Project mention: Zet 1.0 is out (compare to uniq and comm) | /r/rust | 2023-04-18

    How does it compare with huniq and runiq?

  • thermite

    Thermite SIMD: Melt your CPU

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • gryf

    Graph data structure library aspiring to be convenient, versatile, correct and performant.

    Project mention: Gryf - a new graph data structure library aspiring to be convenient, versatile, correct and performant | /r/rust | 2023-05-21

    Interesting use case. I think that the way to go would be to create adapter which would wrap (a reference to) the original graph and provide trait implementations that call the methods of the underlying graph but doing filtering after that. That is definitely something that can be included in the library. I created an issue for this.

  • usher

    Parameterized routing for generic resources in Rust

  • quadtree

    🌲 Point/region Quadtree implementation for Rust. (by ambuc)

    Project mention: Is there a quadtree implementation with generic types for the coordinates? | /r/rust | 2022-10-27

    Alitle google search

  • staticstep

    Provides truly zero-cost alternatives to Iterator::step_by for both incrementing and decrementing any type that satisfies RangeBounds<T: Copy + Default + Step>.

  • advent-of-code

    🎄 This is my set of awesome solutions for the Advent of Code puzzles (by garciparedes)

  • Mars

    Mars is a rust machine learning library. [Goal is to make Simple as possible] (by UTFeight)

    Project mention: Hello everyone, I am building a machine learning library called Mars (stands for MAchineRS) | /r/rust | 2022-12-25
  • lib-wc

    A simple rust library

    Project mention: Having trouble creating a server client in Rust | /r/rust | 2023-01-09
  • algo

    Coding problems with modern languages, TDD and CI (by protiumx)

  • advent-of-code-2022

    🎄 My solutions to Advent of Code 2022. (by v-shenoy)

    Project mention: Hey Rustaceans! Got a question? Ask here! (49/2022)! | /r/rust | 2022-12-05

    Mentioning it again, I am doing Advent of Code in Rust this year. Link to repo if anyone's interested.

  • LearnRustTogether

    Learn Rust Together

    Project mention: Ukrainian branch of Rust Community | /r/rustlang_ua | 2022-06-13

    - Where do I start learning? Please pay attention to manually-selected courses and learning materials on Rust. You may start from “General-purpose courses” section. Starred resources are highly recommended.

  • algorithmics

    Participation to algorithmic contests, in bulk.

    Project mention: -🎄- 2022 Day 20 Solutions -🎄- | /r/adventofcode | 2022-12-19

    Argh, a naïve solutions takes about 60ms on my laptop :

  • SaaSHub

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

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). The latest post mention was on 2023-05-21.

Rust Algorithms related posts


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

Project Stars
1 Rust 16,089
2 rust-algorithms 3,461
3 linfa 2,670
4 cv 516
5 graph 285
6 runiq 185
7 thermite 155
8 gryf 57
9 usher 37
10 quadtree 18
11 staticstep 14
12 advent-of-code 7
13 Mars 7
14 lib-wc 4
15 algo 3
16 advent-of-code-2022 3
17 LearnRustTogether 3
18 algorithmics 0
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives