error[E0432]: unresolved import async_stripe
#689
Replies: 4 comments
-
Hello! The repository is Lines 30 to 31 in 5ed7e1e What you want to import is async-stripe/examples/customer.rs Lines 10 to 15 in 5ed7e1e |
Beta Was this translation helpful? Give feedback.
-
@augustoccesar you beat me to it! I'll also recommend the docs at https://docs.rs/async-stripe/latest/stripe/ for more example usage. It would be cool if the compiler error warned about the library rename and suggested a fix. |
Beta Was this translation helpful? Give feedback.
-
You guys are legends, thank you very much for your help. Maybe I will raise the bug as well to suggest that potential fix @mzeitlin11 |
Beta Was this translation helpful? Give feedback.
-
This is a holdover from the old lib we forked. Needed a new name for crates but didn't want to change existing code. @mzeitlin11 you're right a compiler warning would be cool here! But there's not much we can do on our end. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I feel really dumb here but I literally cannot seem to get async working at all.
On my main project I removed it entirely and created another project just for simplicity.
main.rs:
Cargo.toml:
What I have done so far:
Additionally in my main project:
Ive also tried using a different runtime like surf:
async-stripe = { version = "0.40.2", default-features = false, features = ["runtime-async-std-surf"] }
Still the same error.
Beta Was this translation helpful? Give feedback.
All reactions