next: Activating serialize
feature on async-stripe-webhook
results in compile error
#663
Labels
bug
Something isn't working
Describe the bug
When enabling
(de)serialize
feature onasync-stripe-webhook@next
results in compilation error with messages that events don't implementserde::Serialize
/serde::Deserialize
.My temporary fix to make it compile is this patch:
but this enables all the optional crates and results in compiling code that I don't use elsewhere.
The solution would need to be in
AND
fashion, notOR
.Now the resolution works like this:
async-stripe-billing
is optional and has featureserialize
async-stripe-billing
onasync-stripe-webhook
-> crate enabled withoutserialize
featureserialize
onasync-stripe-webhook
that has dependent featureasync-stripe-billing/serialize
-> crate also enabled with featureserialize
even thought I don't needasync-stripe-billing
The ideal solution would work like this:
async-stripe-webhook
enablesserialize
ANDasync-stripe-billing
.this activates
async-stripe-billing/serialize
, but not the other crates.Right now I don't have idea how to solve this, but that could just be my limited experience with cargo features.
If you have an idea how to solve it, I would be more than willing to open a PR to resolve this
To Reproduce
Expected behavior
Code snippets
OS
Linux
Rust version
1.84.0
Library version
next
API version
2024-04-10
Additional context
No response
The text was updated successfully, but these errors were encountered: