1 unstable release

0.1.0 Jul 20, 2021

#25 in #aliases

GPL-3.0 license

15KB
57 lines

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
});

No runtime deps