#declarative-macro #unsafe #block #input #wraps

sus

A declarative macro that wraps any input with an unsafe block

2 releases

0.1.1 Jan 6, 2022
0.1.0 Jan 6, 2022

#2568 in Rust patterns

MIT license

4KB

githubcrates-iodocs-rs

sus - (an alternative to unsafe)

A macro that is useful when you want to give the impression that a block of code is questionable, dishonest or suspicious.

Usage Example

unsafe fn dangerous() {}

fn main() {
    sus! {
        dangerous()
    }
}

No runtime deps