Closed Stebalien closed 3 weeks ago
I'd like to be able put a method on a delegatable trait behind a feature flag like so:
#[delegatable_trait] trait MyTrait { fn foo(&self); #[cfg(feature = "enable-bar")] fn bar(&self); } #[derive(Delegate)] #[delegate(MyTrait)] struct MyStruct(SomeBaseStruct);
Unfortunately, it looks like ambassador is discarding cfg attributes.
cfg
I'd like to be able put a method on a delegatable trait behind a feature flag like so:
Unfortunately, it looks like ambassador is discarding
cfg
attributes.