trustme

Crates.iotrustme
lib.rstrustme
version1.0.1
sourcesrc
created_at2023-07-02 07:08:01.499524
updated_at2023-07-02 07:10:55.777656
descriptionTell the compiler that you can be trusted to write unsafe code!
homepage
repository
max_upload_size
id905896
size2,966
Jonas (JM4ier)

documentation

README

trustme

Tell the compiler that you can be trusted!

use trustme::*;

fn main() {
    let mut x: i32 = 0;
    let ptr = (&mut x) as *mut i32;
    trustme! {*ptr = 42};
    println!("{x}");
}
Commit count: 0

cargo fmt