#proc-macro #allocator #bindings #set #documentation #scudo

macro scudo-proc-macros

Proc macros to use with the Rust bindings for the Scudo Allocator

1 unstable release

0.1.0 Oct 24, 2022

#272 in #allocator

Download history 642/week @ 2024-07-20 686/week @ 2024-07-27 551/week @ 2024-08-03 402/week @ 2024-08-10 367/week @ 2024-08-17 289/week @ 2024-08-24 502/week @ 2024-08-31 548/week @ 2024-09-07 497/week @ 2024-09-14 504/week @ 2024-09-21 422/week @ 2024-09-28 617/week @ 2024-10-05 291/week @ 2024-10-12 514/week @ 2024-10-19 515/week @ 2024-10-26 402/week @ 2024-11-02

1,807 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
~36K SLoC