I have tried various combinations of stringify! and it seems that Rust just does not like anything but plain string literal there. I assume that the #[doc] support might be quite close to what I want here for the features.
Even if I use #[cfg(feature = stringify!($feature))] I get:
error: expected unsuffixed literal or identifier, found `stringify`
I wonder if there is a way to express the following macro:
This gives me quite a cryptic message when use:
I have tried various combinations of
stringify!
and it seems that Rust just does not like anything but plain string literal there. I assume that the#[doc]
support might be quite close to what I want here for the features.Even if I use
#[cfg(feature = stringify!($feature))]
I get: