cratesio_placeholder_package/lib.rs
1/// You can use this macro to "feature-gate" code depending on the placeholder
2/// having been overridden (you'll need to define an identity macro in your
3/// proxy crate):
4///
5/** ```rust ,ignore
6//! overriding crate
7
8// (identity macro)
9#[macro_export]
10macro_rules! cfg_not_placeholder {( $($input:tt)* ) => (
11 $($input)*
12)}
13``` */
14///
15/// With it, you can then use:
16///
17/** ```rust ,ignore
18::your_crate_proxy::cfg_not_placeholder! {
19 use ::your_crate_proxy::{your, stuff};
20
21 // …
22}
23``` */
24#[macro_export]
25macro_rules! cfg_not_placeholder {( $($input:tt)* ) => (
26 /* no output since we are the placeholder */
27)}