Crates.io | foot-gun |
lib.rs | foot-gun |
version | 0.1.0 |
source | src |
created_at | 2021-07-20 14:42:00.853235 |
updated_at | 2021-07-20 14:42:00.853235 |
description | Friendly aliases for your unsafe code |
homepage | https://github.com/ewpratten/foot-gun |
repository | https://github.com/ewpratten/foot-gun |
max_upload_size | |
id | 425172 |
size | 42,283 |
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.
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
});