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

#148 in Memory management

Download history 244/week @ 2023-12-15 28/week @ 2023-12-22 387/week @ 2023-12-29 432/week @ 2024-01-05 588/week @ 2024-01-12 395/week @ 2024-01-19 539/week @ 2024-01-26 452/week @ 2024-02-02 409/week @ 2024-02-09 557/week @ 2024-02-16 613/week @ 2024-02-23 572/week @ 2024-03-01 659/week @ 2024-03-08 554/week @ 2024-03-15 590/week @ 2024-03-22 435/week @ 2024-03-29

2,363 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–1.6MB
~38K SLoC