1 unstable release

0.1.0 May 5, 2019

#20 in #attr

50 downloads per month
Used in st7565

MIT/Apache

6KB

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;

No runtime deps