foot-gun 0.1.0

Friendly aliases for your unsafe code
Documentation
  • Coverage
  • 100%
    8 out of 8 items documented7 out of 7 items with examples
  • Size
  • Source code size: 41.91 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.19 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ewpratten

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