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
- Host: GitHub
- URL: https://github.com/lu-zero/noop_proc_macro
- Owner: lu-zero
- License: mit
- Created: 2019-10-05T11:25:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-19T11:58:12.000Z (almost 6 years ago)
- Last Synced: 2024-05-02T00:16:32.321Z (about 2 years ago)
- Language: Rust
- Size: 4.88 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)