foot-gun

Crates.iofoot-gun
lib.rsfoot-gun
version0.1.0
sourcesrc
created_at2021-07-20 14:42:00.853235
updated_at2021-07-20 14:42:00.853235
descriptionFriendly aliases for your unsafe code
homepagehttps://github.com/ewpratten/foot-gun
repositoryhttps://github.com/ewpratten/foot-gun
max_upload_size
id425172
size42,283
Evan Pratten (ewpratten)

documentation

https://docs.rs/foot-gun

README

foot-gun

Crates.io Docs.rs Build Clippy Audit

The foot-gun crate is a joke library inspired by this twitter thread.

This crate provides the following macros:

  • foot_gun
  • here_be_dragons
  • beware
  • behold
  • en_garde
  • i_got_this
  • hold_my_borrowchk

All macros are credited to their "inventors" in RustDoc.

Examples

foot_gun!({
    // Unsafe code here
});

here_be_dragons!({
    // Unsafe code here
});

beware!({
    // Unsafe code here
});

behold!({
    // Unsafe code here
});

en_garde!({
    // Unsafe code here
});

i_got_this!({
    // Unsafe code here
});

hold_my_borrowchk!({
    // Unsafe code here
});
Commit count: 2

cargo fmt