4 releases

0.1.3 Oct 24, 2022
0.1.2 Nov 18, 2021
0.1.1 Nov 15, 2021
0.1.0 Nov 9, 2021

#264 in Memory management

Download history 708/week @ 2024-06-15 787/week @ 2024-06-22 494/week @ 2024-06-29 826/week @ 2024-07-06 550/week @ 2024-07-13 661/week @ 2024-07-20 713/week @ 2024-07-27 566/week @ 2024-08-03 404/week @ 2024-08-10 368/week @ 2024-08-17 300/week @ 2024-08-24 516/week @ 2024-08-31 559/week @ 2024-09-07 504/week @ 2024-09-14 523/week @ 2024-09-21 386/week @ 2024-09-28

2,126 downloads per month
Used in korten

Apache-2.0

230KB
5K SLoC

C++ 4.5K SLoC // 0.1% comments Bitbake 286 SLoC // 0.0% comments Rust 238 SLoC // 0.3% comments

Idiomatic Rust bindings for the Scudo Hardened Allocator.

Scudo is a user space heap allocator designed to be reistent to heap exploitation. It is useful to you if your program allocates memory and you depend on unsafe code or you want defense-in-depth against heap exploitation. In addition to security, it achieves competitive performance against jemalloc, tcmalloc and others.

To use Scudo in your crate:

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

If you want to use the unstable std::alloc::Allocator trait, use the allocator_api feature.

Dependencies

~1.2–1.7MB
~41K SLoC