Crates.io | fix_me |
lib.rs | fix_me |
version | 0.1.2 |
source | src |
created_at | 2020-07-02 20:13:39.793926 |
updated_at | 2020-09-25 12:20:15.791443 |
description | A very simple macro that lets you write temporary code that WILL NOT build in release mode. |
homepage | |
repository | https://github.com/dylanfoxx/fix_me |
max_upload_size | |
id | 260750 |
size | 5,289 |
Fix me is useful for writing temporary code that will be fixed later. It replaces comments like
//FIXME:Rework error handling
or
//TODO:Add logging
Unlike comments fix_me is enforced by the compiler.
fix_me is a simple macro that lets you write temporary code that WILL NOT build in release mode.
Simple fix_me hello world
//Use on functions
fix_me::fix_me!(
fn only_false() -> bool {
use fix_me::fix_me;
//Or in functions
fix_me!(
return true;
);
}
);
fn main() {
match only_false() {
false => println!("Hello"),
_ => {}
}
}
It is recommended to add it to the dependencies as you are making changes then remove it as you finish your work.
Feature flag unfixed_code will allow you to compile release code even with fix_me still in your code base. A very simple macro that lets you write temporary code that WILL NOT build in release mode. You can still run debug and test --release without issue.