1 unstable release

0.1.0 Oct 24, 2022

#279 in #allocator

Download history 36/week @ 2023-12-23 412/week @ 2023-12-30 485/week @ 2024-01-06 507/week @ 2024-01-13 477/week @ 2024-01-20 461/week @ 2024-01-27 478/week @ 2024-02-03 370/week @ 2024-02-10 596/week @ 2024-02-17 472/week @ 2024-02-24 691/week @ 2024-03-02 628/week @ 2024-03-09 478/week @ 2024-03-16 575/week @ 2024-03-23 580/week @ 2024-03-30 594/week @ 2024-04-06

2,354 downloads per month
Used in 2 crates (via scudo)

Apache-2.0

9KB
96 lines

This folder contains a Proc-Macro crate for configuring the Scudo allocator with various options.

The exported set_scudo_options attribute macro allows to set Scudo options with an annotation on the main method:

use scudo_proc_macros::set_scudo_options;

#[set_scudo_options(delete_size_mismatch = false, release_to_os_interval_ms = 1)]
fn main() {
    // Use Scudo with the provided options.
}

For more on Scudo options, visit the official documentation here.

Please note: the proc macro exported by this crate works both with the scudo-sys crate as well as with the idiomatic Rust binding crate, scudo.


lib.rs:

A proc-macro crate for the Rust bindings to the Scudo allocator.

The exported [macro@set_scudo_options] attribute macro allows to set Scudo options with an annotation on the main method:

use scudo_proc_macros::set_scudo_options;

#[set_scudo_options(delete_size_mismatch = false, release_to_os_interval_ms = 1)]
fn main() {
    // Use Scudo with the provided options.
}

For more on Scudo options, visit the official documentation here.

Please note: the proc macro exported by this crate works both with the scudo-sys crate as well as with the idiomatic Rust binding crate, scudo.

Dependencies

~1.5MB
~34K SLoC