Skip to content

Rust proc macro that does nothing

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

jstarry/noop-attr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;

About

Rust proc macro that does nothing

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages