Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

allocators-rs

> 编程语言
Open source

Allocators in Rust

317 stars0 likes0 views
WebsiteGitHub

About

Allocators in Rust

Allocators in Rust

Looking for elfmalloc in particular? It's here.

This repository encompasses a number of different crates. Some are general memory allocators, some are object allocators (allocators which allocate a specific type of object), and some are utility crates providing various features needed to implement these allocators.

The info directory contains more detailed information, including performance measurements. Aside from info, all top-level directories are Rust crates. More detailed information on each crate can be found in the crate's README.md.

Allocator crates

Crate Description
elfmalloc A general-purpose multi-threaded allocator providing both Rust Alloc and C malloc APIs
slab-alloc An object-specific slab allocator in the same tradition as the original slab allocator by Jeff Bonwick
bsalloc A simple general-purpose "bootstrapping" allocator used in the implementation of other allocators
mmap-alloc An Alloc API which is a thin wrapper around mmap (on Unix) or VirtualAlloc (on Windows)

Utility crates

Crate Description
alloc-fmt Allocation-safe formatting and debugging macros
alloc-tls Allocation-safe thread-local storage
bagpipe Fast, concurrent data structures including queues and a weakly-ordered bag data structure (design)
malloc-bind Bindings to allow a Rust Alloc to implement the C malloc API
object-alloc Traits representing type-specific variants of the Alloc trait
object-alloc-test A correctness test suite for object allocator implementations (uses the traits defined in object-alloc)

Contributing

Interested in contributing? We'd love to have you! Check out CONTRIBUTING.md.

Copyright and license

Copyrights in this project are retained by their contributors. No copyright assignment is required to contribute to this project. For a list of authors, see this repository's version control history.

This project is dual-licensed under the Apache 2.0 license or the MIT license at your option. Copies of these licenses can be found in the LICENSE-APACHE and LICENSE-MIT files respectively.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言