Repolode
TheAlgorithms

TheAlgorithms/Rust

A collection of classic algorithms and data structures implemented in Rust, intended for educational use.

Stars
26,118
Forks
2,600
Open issues
9
Last commit
11 days ago

What is it?

This repository collects implementations of a broad range of algorithms and data structures written in Rust. It is part of The Algorithms project, a community effort that maintains educational implementations of algorithms across many programming languages.

The code is organized by topic so readers can browse by category and find a specific implementation quickly. A generated directory file provides an overview of everything included. Contributors are asked to follow the project's contribution guidelines when adding new implementations.

Because the goal is teaching, the focus is on readable, self-contained code rather than production libraries. It is a useful reference for developers learning Rust who want to see common algorithms expressed idiomatically.

Key features

  • 01Implements a wide range of classic algorithms in Rust
  • 02Covers common data structures alongside algorithms
  • 03Code is organized by topic for easy browsing
  • 04Includes a generated directory file for navigation
  • 05Open to community contributions under contribution guidelines

Use cases

  • Learning algorithms while getting familiar with Rust syntax
  • Looking up a reference implementation of a standard algorithm in Rust
  • Studying idiomatic Rust code structure for teaching or interviews
  • Contributing an implementation to an open educational project

In collections

Topics

FAQ

What is Rust?
A collection of classic algorithms and data structures implemented in Rust, intended for educational use. This repository collects implementations of a broad range of algorithms and data structures written in Rust. It is part of The Algorithms project, a community effort that maintains educational implementations of algorithms across many programming languages.
Is Rust free to use? What license does it have?
Rust is open source under the MIT license. Check the license terms before using it in commercial products.
Is Rust still maintained?
Actively maintained. The last commit to Rust was on Oct 13, 2026.
What can I use Rust for?
Learning algorithms while getting familiar with Rust syntax Looking up a reference implementation of a standard algorithm in Rust Studying idiomatic Rust code structure for teaching or interviews Contributing an implementation to an open educational project
Where can I get Rust?
The source code and installation instructions are on GitHub: https://github.com/TheAlgorithms/Rust

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects