-
Hello -- forgive the noob-question, but I'm having a hard time making async-stripe compile. I suspect that I've included it incorrectly in my Cargo.toml, but that's just a guess. The error is consistently "could not compile 'async-stripe' (lib)". (Full error at bottom, in case that's helpful) I'm running rustc 1.74.1, freshly updated on an Ubuntu VM. The relevant lines from my Cargo.toml are:
Things I've Also Tried:
None of it works. I'm not sure which version to reference here -- crates.io says to use 0.26.0. But the async-stripe docs say to use the version that corresponds to the Stripe API that you're using. From the readme:
But my Stripe Dashboard says I'm using the 2023-10-16 API, which ... isn't either of the ones that are listed here. But it doesn't seem to matter -- whatever number I pick, it doesn't compile. So I guess:
I appreciate any help I can get on this. Thanks,
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Yeah sorry the readme is outdated. You will probably need the 'core' feature as well as it contains a number of APIs that all the other chunks rely on. |
Beta Was this translation helpful? Give feedback.
-
I got the same error when building with Docker. I increased the memory allocation from 8GB and it worked fine. |
Beta Was this translation helpful? Give feedback.
Took some time to verify this and it tools like the version you are specifying builds as expected. Ignore the stuff about the
core
feature, that is no longer relevant. This is the full contents of the Cargo.toml from my test project using the most recent version.Commands to get here are as follows
cargo new async-stripe-test cd async-stripe-test cargo add async-stripe --no-default-features -F runtime-async-std-surf