2 unstable releases
0.2.0 | Jul 19, 2024 |
---|---|
0.1.0 | Jul 16, 2024 |
#761 in Procedural macros
3KB
Trust Me 2
An attribute macro that adds an unsafe block around a function body. Inspired by the iconic Trust Me Macro, the additional '2' represents the cutting-edge improvement from pre-existing unsafe macros that still requires a {} block.
Usage
- Install
cargo add trust-me-2
- Add attribute
#[trust_me]
fn secretly_unsafe() {
// Unsafe code
}
Dependencies
~1.5MB
~37K SLoC