First: Extremely practical crate! Thanks!
I wanted to use Cargo features and cfg_attr in order to be able to activate/deactivate the compilation of metering or change which set of functions is going to be measured. However, I ran into the problem that cfg_attr complained about measure not being an attribute.
Example:
#[cfg_attr(feature = "measure-audio", measure)]
pub fn my_audio_function() {
todo!()
}
Is there any way to fix it? E.g. to make measure an actual attribute?
First: Extremely practical crate! Thanks!
I wanted to use Cargo features and
cfg_attrin order to be able to activate/deactivate the compilation of metering or change which set of functions is going to be measured. However, I ran into the problem thatcfg_attrcomplained aboutmeasurenot being an attribute.Example:
Is there any way to fix it? E.g. to make
measurean actual attribute?