4 个版本

0.1.3 2022 年 10 月 24 日
0.1.2 2021 年 11 月 18 日
0.1.1 2021 年 11 月 15 日
0.1.0 2021 年 11 月 9 日

214内存管理

Download history · Rust 包仓库 469/week @ 2024-04-20 · Rust 包仓库 688/week @ 2024-04-27 · Rust 包仓库 630/week @ 2024-05-04 · Rust 包仓库 916/week @ 2024-05-11 · Rust 包仓库 838/week @ 2024-05-18 · Rust 包仓库 704/week @ 2024-05-25 · Rust 包仓库 643/week @ 2024-06-01 · Rust 包仓库 811/week @ 2024-06-08 · Rust 包仓库 708/week @ 2024-06-15 · Rust 包仓库 787/week @ 2024-06-22 · Rust 包仓库 494/week @ 2024-06-29 · Rust 包仓库 826/week @ 2024-07-06 · Rust 包仓库 550/week @ 2024-07-13 · Rust 包仓库 661/week @ 2024-07-20 · Rust 包仓库 713/week @ 2024-07-27 · Rust 包仓库 565/week @ 2024-08-03 · Rust 包仓库

2,614 每月下载量
用于 korten

Apache-2.0

230KB
5K SLoC

C++ 4.5K SLoC // 0.1% comments · Rust 包仓库 Bitbake 286 SLoC // 0.0% comments · Rust 包仓库 Rust 238 SLoC // 0.3% comments · Rust 包仓库

Scudo 强化分配器的惯用 Rust 绑定。

Scudo 是一个用户空间堆分配器,旨在抵御堆漏洞攻击。 如果您的程序分配内存并依赖于不安全代码,或者您想针对堆漏洞攻击进行多层防御,那么它对您很有用。 除了安全性,它在 jemalloc、tcmalloc 等方面实现了具有竞争力的性能。

要在您的 crate 中使用 Scudo

$ cargo add scudo
use scudo::GlobalScudoAllocator;
#[global_allocator]
static SCUDO_ALLOCATOR: GlobalScudoAllocator = GlobalScudoAllocator;

如果您想使用不稳定的 std::alloc::Allocator trait,请使用 allocator_api 功能。

依赖项

~1.2–1.7MB
~40K SLoC