fix_me 0.1.2

A very simple macro that lets you write temporary code that WILL NOT build in release mode.
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 5.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 66.4 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 7s Average build duration of successful builds.
  • all releases: 7s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • dylanfoxx/fix_me
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dylanfoxx

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.

  • You can still compile debug builds and run test --release without issue.
  • fix_me has no overhead on any release or debug code, instead it provides a compile error if any fix_me code is still in the project at release time.

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.