noop-attr 0.1.0

A proc macro attribute that does nothing
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 13.82 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 245.14 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • jstarry/noop-attr
    0 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jstarry

noop-attr

Rust proc macro that does nothing

A use-case wrapping a feature switched macro:

#[cfg(feature = "enable")]
extern crate real_impl;
#[cfg(feature = "enable")]
pub use self::real_impl::real_attr as wrapped_attr;

#[cfg(not(feature = "enable"))]
extern crate noop_attr;
#[cfg(not(feature = "enable"))]
pub use self::noop_attr::noop as wrapped_attr;