macro_rules! define_harden_function {
    ($visibility:vis fn $name:ident {$($($path:tt).+ = $rhs:tt,)*}) => { ... };
    (@@ $config:ident, anti_tracing = false) => { ... };
    (@@ $config:ident, anti_tracing = true) => { ... };
    (@@ $config:ident, fs = false) => { ... };
    (@@ $config:ident, fs = true) => { ... };
    (@@ $config:ident, fs.procfs = false) => { ... };
    (@@ $config:ident, fs.procfs = true) => { ... };
    (@@ $config:ident, unstable = false) => { ... };
    (@@ $config:ident, unstable = true) => { ... };
    (@@ $config:ident, unstable.win.ntapi = false) => { ... };
    (@@ $config:ident, unstable.win.ntapi = true) => { ... };
    (@@ $config:ident, unstable.win.kernelmem = false) => { ... };
    (@@ $config:ident, unstable.win.kernelmem = true) => { ... };
    (@@ $config:ident, unstable.assert_feature_enabled = true) => { ... };
    (@@ $config:ident, win.dacl = default) => { ... };
    (@@ $config:ident, win.dacl = empty) => { ... };
    (@@ $config:ident, win.dacl = custom_user_perm($access:expr)) => { ... };
    (@@ $config:ident, win.dacl = custom_fnptr($fnptr:expr)) => { ... };
}
Expand description

Define a custom hardening function. See the module level documentation crate::macros for details.