trust-me-2

Crates.iotrust-me-2
lib.rstrust-me-2
version0.2.0
sourcesrc
created_at2024-07-16 22:57:35.520821
updated_at2024-07-19 18:59:43.848975
descriptionA convenient macro to tell the Rust compiler that you know better and to leave you alone regarding unsafe code.
homepage
repositoryhttps://github.com/fischer36/trust-me-2/
max_upload_size
id1305611
size3,831
(fischer36)

documentation

README

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 
}
Commit count: 0

cargo fmt