cdk-rs icon indicating copy to clipboard operation
cdk-rs copied to clipboard

`export_candid` macro does not take features into consideration

Open benjizhai opened this issue 2 years ago • 1 comments

When invoking export_candid of v0.11 in a crate with features (https://github.com/internet-computer-protocol/rustic), it exports all functions even when the corresponding feature is not enabled.

For example, when using it without the lifecycle feature flag, the exported candid still contains get_version which is behind a feature flag.

benjizhai avatar Sep 19 '23 10:09 benjizhai

I cannot reproduce this. lifecycle is in the default features, maybe that's why you see it?

chenyan-dfinity avatar Sep 19 '23 20:09 chenyan-dfinity