scudo-proc-macros

Crates.ioscudo-proc-macros
lib.rsscudo-proc-macros
version0.1.0
sourcesrc
created_at2022-10-24 12:30:37.551206
updated_at2022-10-24 12:30:37.551206
descriptionProc macros to use with the Rust bindings for the Scudo Allocator
homepagehttps://llvm.org/docs/ScudoHardenedAllocator.html
repositoryhttps://github.com/google/rust-scudo
max_upload_size
id695827
size13,986
Bastian Kersting (1c3t3a)

documentation

README

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.

Commit count: 28

cargo fmt