An open API service indexing awesome lists of open source software.

https://github.com/lu-zero/noop_proc_macro

Does nothing with style
https://github.com/lu-zero/noop_proc_macro

Last synced: about 1 year ago
JSON representation

Does nothing with style

Awesome Lists containing this project

README

          

# NoOp proc macro

NoOp mocks for `proc_macros` that you might want to make optional.

``` rust
#[cfg(feature = "serde")]
pub(crate) use serde_derive::{Serialize, Deserialize};

#[cfg(not(feature = "serde")]
pub(crate) use noop_proc_macro::{Serialize, Deserialize};
```

## Supported `proc_macros`

- [Serde](https://serde.rs)
- [rust-hawktracer](https://github.com/AlexEne/rust_hawktracer)
- [wasm_bindgen](https://github.com/rustwasm/wasm-bindgen)