#proc-macro #allocator #annotations #macro-attributes #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

#79 in #annotations

Download history 485/week @ 2025-11-10 384/week @ 2025-11-17 82/week @ 2025-11-24 753/week @ 2025-12-01 853/week @ 2025-12-08 537/week @ 2025-12-15 114/week @ 2025-12-22 64/week @ 2025-12-29 762/week @ 2026-01-05 502/week @ 2026-01-12 613/week @ 2026-01-19 834/week @ 2026-01-26 369/week @ 2026-02-02 338/week @ 2026-02-09 213/week @ 2026-02-16 362/week @ 2026-02-23

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

Apache-2.0

9KB
96 lines

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.


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.

Dependencies

~1.5MB
~39K SLoC